Debian Codegraph @

gcc/testsuite/g++.dg/modules/indirect-3_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options "-fmodules-ts" }
3
4 // indirect references to import, template member non-template or
5 // non-template member of template cases
6
7 export module foo;
8 // { dg-module-cmi foo }
9
10 namespace foo
11 {
12 export class X
13 {
14 public:
15 template <int I> int frob () const { return I; }
16 };
17
18 export template<int I> class TPL
19 {
20 public:
21 int frob () const { return I; }
22 };
23 }