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

28 lines
311 B
C

// { dg-additional-options -fmodules-ts }
import node;
struct b
{
int frob () const
{
return 0;
}
};
int main ()
{
assert (0);
baselink<b> thing;
thing.Frob ();
if (!trait<b> ())
return 1;
if (!ptrmemdata (other ()))
return 2;
if (ptrmemfn (b ()))
return 2;
return 0;
}