| 1 |
// { dg-additional-options {-fmodules-ts -fdump-lang-module-uid-alias} } |
| 2 |
import foo; |
| 3 |
|
| 4 |
int main () |
| 5 |
{ |
| 6 |
user (); |
| 7 |
foo ('a'); // new inst |
| 8 |
foo (1); // find foo's inst |
| 9 |
return 0; |
| 10 |
} |
| 11 |
|
| 12 |
// { dg-final { scan-lang-dump {Reading definition function_decl '::foo@foo:.<int>'} module } } |
| 13 |
// { dg-final { scan-lang-dump {Reading definition function_decl '::foo@foo:.<float>'} module } } |
| 14 |
|
| 15 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(unique\) function_decl:'::baz'} module } } |
| 16 |
// { dg-final { scan-lang-dump {Read:-[0-9]*'s named merge key \(unique\) function_decl:'::baz'} module } } |