Debian Codegraph @

gcc/testsuite/g++.dg/modules/nodes-1_b.C

raw
1 // { dg-additional-options -fmodules-ts }
2 import node;
3
4 struct b
5 {
6 int frob () const
7 {
8 return 0;
9 }
10 };
11
12 int main ()
13 {
14 assert (0);
15 baselink<b> thing;
16 thing.Frob ();
17 if (!trait<b> ())
18 return 1;
19
20 if (!ptrmemdata (other ()))
21 return 2;
22
23 if (ptrmemfn (b ()))
24 return 2;
25
26 return 0;
27 }