1 // { dg-additional-options "-fmodules-ts -fdump-lang-module-uid" }
2 import bar;
3 
main()4 int main ()
5 {
6 
7   if (bar::quux ())
8     return 1;
9 
10   if (bar::toto ())
11     return 2;
12 
13   return 0;
14 }
15 
16 // { dg-final { scan-lang-dump {Lazily binding '::bar@bar:.::quux'@'bar' section:} module } }
17 // { dg-final { scan-lang-dump {>Loading entity foo\[5\] section:2} module } }
18 // { dg-final { scan-lang-dump {Imported:-[0-9]* template_decl:'::foo@foo:.::X@foo:.::template frob@foo:.'@foo} module } }
19 // { dg-final { scan-lang-dump-not {Instantiation:-[0-9]* function_decl:'::foo::X@foo:.::frob@.()<0x0>'} module } }
20 
21 // { dg-final { scan-lang-dump {Lazily binding '::bar@bar:.::toto'@'bar' section:} module } }
22 // { dg-final { scan-lang-dump {>Loading entity foo\[.\] section:1} module } }
23 // { dg-final { scan-lang-dump {Imported:-[0-9]* template_decl:'::foo@foo:.::template TPL@foo:.'@foo} module } }
24 // { dg-final { scan-lang-dump {Reading definition type_decl '::foo@foo:.::TPL@bar:.<0x0>'} module } }
25