Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | /* RUN: %clang_cc1 -std=c++0x -fixit %s -o - | %clang_cc1 -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 |