summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/offset1.C
blob: a918baab8d196529781b4b5a260e61faf585c0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// PRMS Id: 5070 (testcase 1)

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());	// { dg-bogus "" } 
}