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