gcc/testsuite/g++.dg/modules/stdio-1_b.C
raw| 1 | // { dg-additional-options "-fmodules-ts -fdump-lang-module" } |
| 2 | |
| 3 | import "stdio-1_a.H"; |
| 4 | |
| 5 | int main () |
| 6 | { |
| 7 | printf ("hello world!\n"); |
| 8 | return 0; |
| 9 | } |
| 10 | |
| 11 | // { dg-final { scan-lang-dump {Bindings '::printf' section:} module } } |
| 12 | // { dg-final { scan-lang-dump {Lazily binding '::printf'@'[^\n]*stdio-1_a.H' section:} module } } |
| 13 | // Make sure we don't load spurious stuff |
| 14 | // { dg-final { scan-lang-dump-not {binding '::scanf'@'[^\n]*'} module } } |