blob: 689c6b9f17e1c57ba3689f220941ffe7f426b737 [file] [log] [blame]
Ilya Biryukov26a35da2018-06-06 08:50:12 +00001// RUN: %clang_cc1 -std=c++17 -fmodules-ts -emit-obj -verify -o %t.pcm %s
Jan Korous67da1252018-06-06 05:16:34 +00002
3export module M;
Richard Smithe181de72019-04-22 22:50:11 +00004export { // 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 a; }; // expected-error {{declaration of 'a' with internal linkage cannot be exported}}
Jan Korous67da1252018-06-06 05:16:34 +00007}