Debian Codegraph @

gcc/testsuite/g++.dg/modules/mod-decl-3.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-pedantic" }
2 module;
3 # 4 "mod-decl-3.C" 1
4 export void Foo (); // { dg-error "after a module interface" }
5
6 # 7 "" 2
7 export module bob;
8 // { dg-module-cmi "!bob" }
9
10 export
11 export // { dg-error "occur once" }
12 void Baz ();
13
14 export
15 {
16 export // { dg-error "occur once" }
17 void Bar ();
18 }
19
20 namespace Bink
21 {
22 import // { dg-error "does not name" }
23 ben;
24 }