]> granicus.if.org Git - clang/commitdiff
Add test from PR9130.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Feb 2011 06:36:50 +0000 (06:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Feb 2011 06:36:50 +0000 (06:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124781 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/pr9130.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/pr9130.cpp b/test/CodeGenCXX/pr9130.cpp
new file mode 100644 (file)
index 0000000..b28f394
--- /dev/null
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
+
+class nsOggCodecState {
+  virtual int StartTime() {
+    return -1;
+  }
+};
+class nsVorbisState : public nsOggCodecState {
+  virtual ~nsVorbisState();
+};
+nsVorbisState::~nsVorbisState() {
+}
+
+// CHECK: define linkonce_odr i32 @_ZN15nsOggCodecState9StartTimeEv