brintos

brintos / llvm-project-archived public Read only

0
0
Text · 235 B · 2e74da0 Raw
12 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2 3// PR55184struct A { 5  explicit operator int(); // expected-note{{conversion to integral type}}6};7 8void x() { 9  switch(A()) { // expected-error{{explicit conversion to}}10  }11}12