YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenCXX/conversion-operator-base.cpp

8 lines
153 B
C++
Raw Normal View History

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