summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse12.C
blob: 8988cebc8a4a37056c413e785cd7732ff06d4589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do run  }
// PRMS Id: 6821

struct A {
  int operator()(int i) { return i; }
};

struct B {
  A* p;
  int f () { return (*p)(42); }	// { dg-bogus "" } 
};

int main ()
{
  B b = { new A };

  return b.f () != 42;
}