Debian Codegraph @

gcc/testsuite/g++.dg/modules/err-1_c.C

raw
1 // { dg-additional-options "-fmodules-ts" }
2 import Foo;
3
4 void One ()
5 {
6 Frob (0, 0, 0L);
7 Frob (0, 0L, 0);
8 Frob (0L, 0, 0); // { dg-error "ambiguous" }
9 // { dg-regexp {candidate 1: 'int Frob@Foo\(int, long int, int\)'} }
10 // { dg-regexp {candidate 2: 'int Frob@Foo\(int, int, long int\)'} }
11 }
12
13 import Bar;
14
15 void Two ()
16 {
17 Frob (0L, 0, 0);
18 Frob (0, 0, 0); // { dg-error "ambiguous" }
19 // { dg-regexp {candidate 1: 'int Frob@Foo\(int, long int, int\)'} }
20 // { dg-regexp {candidate 2: 'int Frob@Foo\(int, int, long int\)'} }
21 // { dg-regexp {candidate 3: 'int Frob@Bar\(long int, int, int\)'} }
22 }