Debian Codegraph @

gcc/testsuite/g++.dg/modules/friend-9_b.C

raw
1 // { dg-additional-options -fmodules }
2
3 // Check that f and A are mangled as attached to M.
4 // void f@M<A@M<main::loc> >(A@M<main::loc>)
5 // { dg-final { scan-assembler "_ZW1M1fIS_1AIZ4mainE3locEEvT_" } }
6
7 import M;
8
9 int main()
10 {
11 struct loc {};
12 f(A<loc>());
13 }