diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-01-25 02:04:36 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-25 02:04:36 +0000 |
| commit | a24b299c00792093910f77eb10c01035bca91bb0 (patch) | |
| tree | f763c897b61e959b58251e92d8b3f9f9dd96b01f /clang/test/CodeGenCXX/apple-kext-indirect-call.cpp | |
| parent | 9f7ae2c9484431ad9caa4357b5109f90c166edd0 (diff) | |
| download | bcm5719-llvm-a24b299c00792093910f77eb10c01035bca91bb0.tar.gz bcm5719-llvm-a24b299c00792093910f77eb10c01035bca91bb0.zip | |
Rename four test files from .C to .cpp.
lit.cfg has never supported running .C files, so these tests were never
executed by check-clang. Rename them to .cpp so that they run as part of
the test suite, and minorly tweak two of them that look like they were broken
when checked in to actually pass.
llvm-svn: 227029
Diffstat (limited to 'clang/test/CodeGenCXX/apple-kext-indirect-call.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/apple-kext-indirect-call.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/apple-kext-indirect-call.cpp b/clang/test/CodeGenCXX/apple-kext-indirect-call.cpp new file mode 100644 index 00000000000..6102072ada0 --- /dev/null +++ b/clang/test/CodeGenCXX/apple-kext-indirect-call.cpp @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -emit-llvm -o - %s | FileCheck %s + +struct Base { + virtual void abc(void) const; +}; + +void Base::abc(void) const {} + +void FUNC(Base* p) { + p->Base::abc(); +} + +// CHECK: getelementptr inbounds (void (%struct.Base*)** bitcast ([4 x i8*]* @_ZTV4Base to void (%struct.Base*)**), i64 2) +// CHECK-NOT: call void @_ZNK4Base3abcEv |

