Debian Codegraph @

gcc/testsuite/g++.dg/modules/class-5_c.C

raw
1 // { dg-additional-options "-fmodules-ts" }
2 import One;
3
4 int vcall (base *ptr)
5 {
6 return ptr->getter ();
7 }
8
9 int main ()
10 {
11 base b (0xfeed);
12
13 if (!(vcall (&b) == 0xfeed))
14 return 1;
15
16 return 0;
17 }