Debian Codegraph @

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

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