rt_gccstream/gcc/testsuite/g++.old-deja/g++.other/ptrmem1.C

16 lines
162 B
C

// { dg-do assemble }
class x
{
public:
virtual int is_constant();
};
void foo()
{
x* y;
if (y->is_constant) // { dg-error "" } assuming &
{
}
}