summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/conversion-operator-base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/conversion-operator-base.cpp')
-rw-r--r--clang/test/CodeGenCXX/conversion-operator-base.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/conversion-operator-base.cpp b/clang/test/CodeGenCXX/conversion-operator-base.cpp
new file mode 100644
index 0000000..8fbeadf
--- /dev/null
+++ b/clang/test/CodeGenCXX/conversion-operator-base.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm-only %s -verify
+// PR5730
+
+struct A { operator int(); float y; };
+struct B : A { double z; };
+void a() { switch(B()) {} }
+