From 2ce79bc4fd6818abfcdaffcad136994905e62fea Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 10 Dec 2009 08:51:23 +0000 Subject: [PATCH] Test for r90950. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91043 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/conversion-operator-base.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CodeGenCXX/conversion-operator-base.cpp diff --git a/test/CodeGenCXX/conversion-operator-base.cpp b/test/CodeGenCXX/conversion-operator-base.cpp new file mode 100644 index 0000000000..49796d08a8 --- /dev/null +++ b/test/CodeGenCXX/conversion-operator-base.cpp @@ -0,0 +1,7 @@ +// RUN: clang-cc -emit-llvm-only %s -verify +// PR5730 + +struct A { operator int(); float y; }; +struct B : A { double z; }; +void a() { switch(B()) {} } +