aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/offset4.C
blob: 9325cc47cd02748f1dbaa3153c3157d21efa469e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// Bug: g++ complains about the use of A::p below.

struct A {
  void *p;
};

struct B: public A {
  int f ()
    {
      if (A::p)
	return 1;
      return 0;
    }
};