Sign in
rust
/
rust-lang
/
llvm-project
/
refs/heads/rustc/17.0-2023-09-19
/
.
/
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}}
};