freebsd-dev/test/CodeGenCXX/conversion-operator-base.cpp
2010-01-01 10:34:51 +00:00

8 lines
153 B
C++

// RUN: %clang_cc1 -emit-llvm-only %s -verify
// PR5730
struct A { operator int(); float y; };
struct B : A { double z; };
void a() { switch(B()) {} }