☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
SemaCXX
/
switch-0x.cpp
☽
☼
clang/test/SemaCXX/switch-0x.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3
// PR5518
4
struct A {
5
explicit operator int(); // expected-note{{conversion to integral type}}
6
};
7
8
void x() {
9
switch(A()) { // expected-error{{explicit conversion to}}
10
}
11
}