repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
PR49534.cpp
blob
6b6452257f6a92a34084ad4092e98d0627ded2bf
1
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify
2
3
static union
{
// expected-warning {{declaration does not declare anything}}
4
virtual
int
a
();
// expected-error {{unions cannot have virtual functions}}
5
};