Debian Codegraph @

gcc/testsuite/g++.dg/modules/adl-5_d.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 import foo;
4 import hidden;
5
6 int main ()
7 {
8 X x (2);
9
10 if (frob (x) != 2) // { dg-error "not declared in" }
11 return 1;
12
13 // { dg-regexp "\n\[^\n]*adl-5_a.C:8:15: error: 'frob' was not declared in this scope$" }
14 if (TPL (x) != 2) // { dg-message "required from here" }
15 return 2;
16
17 return 0;
18 }