Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / anonymous-union-export.cpp
blob9de695313c652bb18faa4f652a83bf717cc8dd21
1 // RUN: %clang_cc1 -std=c++20 -emit-obj -verify -o %t.pcm %s
3 export module M;
4 export { // expected-note 2{{export block begins here}}
5 union { bool a; }; // expected-error {{anonymous unions at namespace or global scope must be declared 'static'}} expected-error {{declaration of 'a' with internal linkage cannot be exported}}
6 static union { bool b; }; // expected-error {{declaration of 'b' with internal linkage cannot be exported}}