Debian Codegraph @

gcc/testsuite/g++.dg/modules/imp-inline-1_a.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-pedantic" }
2
3 module;
4
5 # 6 __FILE__ 1
6 struct Bob
7 {
8 // inline
9 static auto frob ()
10 {
11 }
12 };
13
14 # 14 "" 2
15
16 export module Foo;
17 // { dg-module-cmi Foo }
18
19 export struct Bill
20 {
21 // not inline
22 static auto dob ()
23 {
24 }
25 static inline auto frob ()
26 {
27 }
28 };
29
30 export inline auto GMF ()
31 {
32 return Bob::frob ();
33 }
34
35 // { dg-final { scan-assembler-not {_ZN3Bob4frobEv:} } }
36 // { dg-final { scan-assembler-not {_ZNW3Foo4Bill4frobEv:} } }
37 // { dg-final { scan-assembler {_ZNW3Foo4Bill3dobEv:} } }