gcc/testsuite/g++.dg/modules/tpl-spec-1_b.C
raw| 1 | // { dg-additional-options {-fmodules-ts -fdump-lang-module} } |
| 2 | |
| 3 | import TPL; |
| 4 | |
| 5 | int main () |
| 6 | { |
| 7 | if (foo (1.0f) != 1) |
| 8 | return 1; |
| 9 | |
| 10 | if (foo (1) != 0) |
| 11 | return 2; |
| 12 | |
| 13 | return 0; |
| 14 | } |
| 15 | |
| 16 | // { dg-final { scan-lang-dump-not {Reading definition function_decl '::foo@TPL:.<int>'} module } } |
| 17 | // { dg-final { scan-lang-dump {Reading 1 pending entities keyed to '::foo'} module } } |
| 18 | |
| 19 | // { dg-final { scan-assembler-not {_Z3fooIiEiT_:} } } |