aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/offset1.C
blob: d4fd38b70dc0c58e559e59c004a0afba57952604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PRMS Id: 5070 (testcase 1)
// Build don't link:

struct foo {
  foo(int x = 0) {};
  int IsAlive(void) { return 1; }
};

struct xx {
  int IsOk(int X);
  foo a;
};

int xx::IsOk(int X)
{
  return ((xx::a).IsAlive());	// gets bogus error
}