Sign in
cobalt
/
cobalt
/
63c7ad499be49ef959b3b1c5ea3f48491aa033d3
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
SemaCXX
/
virtual-function-in-union.cpp
blob: 0c4ba5d32caac00fcfcd0a8ec9a58fdc8d049168 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
union
x
{
virtual
void
f
();
// expected-error {{unions cannot have virtual functions}}
};