aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr22404.C
blob: 2c6b8cd2729464447c6066c1940eb836ada46c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2" } */

/* We were not getting the offset of a in B and a in C::B correct, 
   causing an abort.  */
struct A { A(); };

struct B : A
{
    A a;
};

struct C : B { };

C c;