summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/PR6747.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/PR6747.cpp')
-rw-r--r--test/CodeGenCXX/PR6747.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/PR6747.cpp b/test/CodeGenCXX/PR6747.cpp
new file mode 100644
index 0000000..5a07ce6
--- /dev/null
+++ b/test/CodeGenCXX/PR6747.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+
+struct foo {
+ virtual void bar();
+// CHECK: define available_externally void @_ZN3foo3bazEv
+ virtual void baz() {}
+};
+void zed() {
+ foo b;
+ b.baz();
+}
OpenPOWER on IntegriCloud