summaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-cxx0x.cpp
blob: 2c783bc2e33a942d68a279644d54e60089ca501b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* RUN: clang-cc -std=c++0x -fixit %s -o - | clang-cc -x c++ -std=c++0x -
 */

/* This is a test of the various code modification hints that only
   apply in C++0x. */
struct A { 
  explicit operator int(); // expected-note{{conversion to integral type}}
};

void x() { 
  switch(A()) { // expected-error{{explicit conversion to}}
  }
}