diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 06:36:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-03 06:36:50 +0000 |
commit | 59d89c3b1f042e8d02872ab9700d162b13887eeb (patch) | |
tree | a53f696ca215e12865afff3c895bc57328abce9f | |
parent | 01de7a44cea9f77cbcda65faad8edc8b48a3b617 (diff) |
Add test from PR9130.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124781 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/pr9130.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/pr9130.cpp b/test/CodeGenCXX/pr9130.cpp new file mode 100644 index 0000000000..b28f3940e4 --- /dev/null +++ b/test/CodeGenCXX/pr9130.cpp @@ -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 |