summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/apple-kext-indirect-call.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-01-25 02:04:36 +0000
committerNico Weber <nicolasweber@gmx.de>2015-01-25 02:04:36 +0000
commita24b299c00792093910f77eb10c01035bca91bb0 (patch)
treef763c897b61e959b58251e92d8b3f9f9dd96b01f /clang/test/CodeGenCXX/apple-kext-indirect-call.cpp
parent9f7ae2c9484431ad9caa4357b5109f90c166edd0 (diff)
downloadbcm5719-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.cpp14
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
OpenPOWER on IntegriCloud