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

16 lines
229 B
C

// { dg-additional-options "-fmodules-ts" }
import One;
int main ()
{
base b (0xfeed);
if (!(b.b == 0xfeed))
return 1;
derived d (0xcafe, 0xbeef);
if (!(d.b == 0xcafe && d.d == 0xbeef))
return 2;
return 0;
}