Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-friend-4_b.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 module foo;
4
5 template class TPL<int>;
6 template class DEF<int>;
7
8 void m ()
9 {
10 // ADL to find hidden functions
11 foo (1, (TPL<int> *)0);
12 foo (1.0f, (TPL<int> *)0);
13
14 // no ADL, no find
15 {
16 foo (1, 0); // { dg-error "not declared" }
17 }
18 {
19 foo (1.0f, 0); // { dg-error "not declared" }
20 }
21 }