blob: 2c783bc2e33a942d68a279644d54e60089ca501b [file] [log] [blame]
Douglas Gregor84fb9c02009-11-23 13:46:08 +00001/* 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. */
6struct A {
7 explicit operator int(); // expected-note{{conversion to integral type}}
8};
9
10void x() {
11 switch(A()) { // expected-error{{explicit conversion to}}
12 }
13}
14