[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / switch-0x.cpp
blob2e74da0a46348e3546e0f9fe2ae60d3501f26e48
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 // PR5518
4 struct A {
5 explicit operator int(); // expected-note{{conversion to integral type}}
6 };
8 void x() {
9 switch(A()) { // expected-error{{explicit conversion to}}