Debian Codegraph @

gcc/testsuite/g++.dg/modules/tplmem-1_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options "-fmodules-ts" }
3
4 export module frob;
5 // { dg-module-cmi "frob" }
6
7 export struct A
8 {
9 A ()
10 {
11 }
12
13 template<typename T> operator T () const
14 {
15 return T(99);
16 }
17 };
18
19 export template<typename T> struct B
20 {
21 T m;
22
23 B(T t) : m(t)
24 {
25 }
26
27 template<typename S> operator S () const
28 {
29 return S (m);
30 }
31 };
32