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