aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse12.C
blob: 7829a8b1b0d49834e6f7da379b1150d86f977e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PRMS Id: 6821

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

struct B {
  A* p;
  int f () { return (*p)(42); }	// gets bogus error
};

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

  return b.f () != 42;
}