2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm-only %s -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-12-10 16:51:23 +08:00
|
|
|
// PR5730
|
|
|
|
|
|
|
|
struct A { operator int(); float y; };
|
|
|
|
struct B : A { double z; };
|
|
|
|
void a() { switch(B()) {} }
|
|
|
|
|