aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/tmp-md-nodes1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/tmp-md-nodes1.cpp')
-rw-r--r--test/CodeGenCXX/tmp-md-nodes1.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenCXX/tmp-md-nodes1.cpp b/test/CodeGenCXX/tmp-md-nodes1.cpp
new file mode 100644
index 000000000000..41a0159b0fc4
--- /dev/null
+++ b/test/CodeGenCXX/tmp-md-nodes1.cpp
@@ -0,0 +1,18 @@
+// REQUIRES: asserts
+// RUN: %clang_cc1 -O0 -triple %itanium_abi_triple -debug-info-kind=limited -S -emit-llvm %s -o - | \
+// RUN: FileCheck %s
+
+// This test simply checks that the varargs thunk is created. The failing test
+// case asserts.
+
+struct Alpha {
+ virtual void bravo(...);
+};
+struct Charlie {
+ virtual ~Charlie() {}
+};
+struct CharlieImpl : Charlie, Alpha {
+ void bravo(...) {}
+} delta;
+
+// CHECK: define {{.*}} void @_ZThn{{[48]}}_N11CharlieImpl5bravoEz(