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 | } |
12 |