aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/ptrmem1.C
blob: 1b5d5df8e390fe1faa445f230ab4ab1e863e0e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:

class x
{
public:
  virtual int is_constant();
};

void foo()
{
  x* y;
  if (y->is_constant) // ERROR - assuming &
    {
    }
}