Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/class-6_c.C
2023-03-06 14:48:14 +01:00

18 lines
211 B
C

// { dg-additional-options "-fmodules-ts" }
import One;
int vcall (derived *ptr)
{
return ptr->getter ();
}
int main ()
{
derived b (0xfeed);
if (!(vcall (&b) == 0xfeed))
return 1;
return 0;
}