Debian Codegraph @

gcc/testsuite/g++.dg/modules/mod-sym-2.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-pedantic" }
2 module;
3 # 4 "header" 1
4 inline void Foo () {}
5 # 6 "" 2
6 export module okely.dokely;
7 // { dg-module-cmi "okely.dokely" }
8
9 namespace One {
10 namespace Two {
11 inline namespace Three
12 {
13 inline void Foo2 () {}
14
15 export inline void Baz2 () __attribute__((used));
16 export inline void Baz2 () { Foo (); Foo2 (); }
17 }
18 }
19 }
20
21 // { dg-final { scan-assembler "_Z3Foov:" } }
22 // { dg-final { scan-assembler "_ZN3One3Two5ThreeW5okelyW6dokely4Foo2Ev:" } }
23 // { dg-final { scan-assembler "_ZN3One3Two5ThreeW5okelyW6dokely4Baz2Ev:" } }