bolt/deps/llvm-18.1.8/clang/test/SemaCXX/PR49534.cpp
2025-02-14 19:21:04 +01:00

5 lines
214 B
C++

// 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}}
};