| 1 |
// { dg-additional-options {-fmodules-ts -fdump-lang-module} } |
| 2 |
|
| 3 |
import TPL; |
| 4 |
|
| 5 |
int one () |
| 6 |
{ |
| 7 |
if (foo (1.0f) != 1) |
| 8 |
return 1; |
| 9 |
return 0; |
| 10 |
} |
| 11 |
|
| 12 |
|
| 13 |
import SPEC; |
| 14 |
|
| 15 |
int two () |
| 16 |
{ |
| 17 |
if (foo (1) != 0) |
| 18 |
return 2; |
| 19 |
|
| 20 |
return 0; |
| 21 |
} |
| 22 |
|
| 23 |
// { dg-final { scan-lang-dump {Reading 1 pending entities keyed to '::foo'} module } } |
| 24 |
// { dg-final { scan-lang-dump-not {Reading definition function_decl '::foo@TPL:.<int>'} module } } |
| 25 |
|
| 26 |
// { dg-final { scan-assembler-not {_ZW3TPL3fooIiEiT_:} } } |
| 27 |
// { dg-final { scan-assembler {_ZW3TPL3fooIfEiT_:} } } |