summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/conversion-operator-base.cpp
blob: 8fbeadf14916aa1ebd939fe60132ec9efb5cf213 (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -emit-llvm-only %s -verify
// PR5730

struct A { operator int(); float y; };
struct B : A { double z; };
void a() { switch(B()) {} }