[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / PR49534.cpp
blob6b6452257f6a92a34084ad4092e98d0627ded2bf
1 // RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify
3 static union { // expected-warning {{declaration does not declare anything}}
4 virtual int a(); // expected-error {{unions cannot have virtual functions}}
5 };