Clang Project

clang_source_code/test/SemaCXX/anonymous-union-export.cpp
1// RUN: %clang_cc1 -std=c++17 -fmodules-ts -emit-obj -verify -o %t.pcm %s
2
3export module M;
4export {
5    union { bool a; }; // expected-error{{anonymous unions at namespace or global scope must be declared 'static'}}
6}
7