Douglas Gregor | 84fb9c0 | 2009-11-23 13:46:08 +0000 | [diff] [blame^] | 1 | /* RUN: clang-cc -std=c++0x -fixit %s -o - | clang-cc -x c++ -std=c++0x - |
2 | */ | ||||
3 | |||||
4 | /* This is a test of the various code modification hints that only | ||||
5 | apply in C++0x. */ | ||||
6 | struct A { | ||||
7 | explicit operator int(); // expected-note{{conversion to integral type}} | ||||
8 | }; | ||||
9 | |||||
10 | void x() { | ||||
11 | switch(A()) { // expected-error{{explicit conversion to}} | ||||
12 | } | ||||
13 | } | ||||
14 |