gcc/testsuite/g++.dg/modules/err-1_d.C
raw| 1 | // { dg-additional-options "-fmodules-ts" } |
| 2 | import Foo; |
| 3 | import Bar; |
| 4 | |
| 5 | |
| 6 | void Three () |
| 7 | { |
| 8 | Frob (0L, 0, 0); |
| 9 | |
| 10 | Frob (0, 0, 0); // { dg-error "ambiguous" } |
| 11 | // { dg-regexp {candidate 1: 'int Frob@Foo\(int, long int, int\)'} } |
| 12 | // { dg-regexp {candidate 2: 'int Frob@Foo\(int, int, long int\)'} } |
| 13 | // { dg-regexp {candidate 3: 'int Frob@Bar\(long int, int, int\)'} } |
| 14 | } |