opnsense-src/test/CodeGenCXX/conversion-operator-base.cpp

8 lines
153 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm-only %s -verify
2009-12-15 13:49:47 -05:00
// PR5730
struct A { operator int(); float y; };
struct B : A { double z; };
void a() { switch(B()) {} }