Debian Codegraph @

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

raw
1 // { dg-additional-options "-fmodules-ts" }
2 export module bob;
3 // { dg-module-cmi "bob" }
4
5 namespace X
6 {
7 inline void Foo () __attribute__((used));
8 export inline void Baz () __attribute__((used));
9
10 namespace Y
11 {
12 inline void Quux () __attribute__((used));
13 export inline void Bar () __attribute__((used));
14 }
15
16 inline void Y::Quux () {}
17 inline void Y::Bar () {}
18 }
19
20 inline void X::Foo () {}
21 inline void X::Baz () {}
22
23 // { dg-final { scan-assembler "_ZN1XW3bob3FooEv:" } }
24 // { dg-final { scan-assembler "_ZN1XW3bob3BazEv:" } }
25 // { dg-final { scan-assembler "_ZN1X1YW3bob4QuuxEv:" } }
26 // { dg-final { scan-assembler "_ZN1X1YW3bob3BarEv:" } }