Ilya Biryukov | 26a35da | 2018-06-06 08:50:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++17 -fmodules-ts -emit-obj -verify -o %t.pcm %s |
Jan Korous | 67da125 | 2018-06-06 05:16:34 +0000 | [diff] [blame] | 2 | |
| 3 | export module M; |
Richard Smith | e181de7 | 2019-04-22 22:50:11 +0000 | [diff] [blame] | 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 a; }; // expected-error {{declaration of 'a' with internal linkage cannot be exported}} |
Jan Korous | 67da125 | 2018-06-06 05:16:34 +0000 | [diff] [blame] | 7 | } |