gcc/testsuite/g++.dg/modules/inst-2_b.C
raw| 1 | // { dg-additional-options {-fmodules-ts -fdump-lang-module-alias} } |
| 2 | import foo; |
| 3 | |
| 4 | int main () |
| 5 | { |
| 6 | foo (1); // read pending inst |
| 7 | user (); // |
| 8 | foo (1); // reuse inst |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | // { dg-final { scan-lang-dump {Reading 1 pending entities keyed to '::foo'} module } } |
| 13 | |
| 14 | // { dg-final { scan-lang-dump {Read:-[0-9]*'s decl spec merge key \(new\) function_decl:'::foo'} module } } |