mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-28 00:51:34 +00:00
9 lines
180 B
C++
9 lines
180 B
C++
// RUN: %clang_cc1 -emit-llvm-only %s -verify
|
|
// expected-no-diagnostics
|
|
// PR5730
|
|
|
|
struct A { operator int(); float y; };
|
|
struct B : A { double z; };
|
|
void a() { switch(B()) {} }
|
|
|