Debian Codegraph @

gcc/testsuite/g++.dg/modules/late-ret-3_c.C

raw
1 // { dg-additional-options "-fmodules-ts -fdump-lang-module-alias" }
2
3 import "late-ret-3_a.H";
4 import "late-ret-3_b.H";
5
6 struct Arg
7 {
8 int type;
9 };
10
11 int main ()
12 {
13 Arg arg;
14
15 int j = Foo (arg);
16
17 Bar (arg); // { dg-error "ambiguous" }
18
19 return 0;
20 }
21
22 // { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(matched\) template_decl:'::template Foo'\n Deduping '::template Foo@[^\n]*/late-ret-3_a.H:.'\n} module } }