Sign in
llvm
/
llvm-project
/
3633de702985e1580d72223ae38a31d0e6fd480b
/
.
/
clang
/
test
/
SemaCXX
/
PR49534.cpp
blob: 6b6452257f6a92a34084ad4092e98d0627ded2bf [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -x c++ -fsyntax-only %s -verify
static
union
{
// expected-warning {{declaration does not declare anything}}
virtual
int
a
();
// expected-error {{unions cannot have virtual functions}}
};