blob: 3694b9db1af33e841cb1df845b152ce8c39af013 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001/* 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. */
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