aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/m1.C
blob: 2d1321380be2d164ba71a77a5aea6d52e74d4918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 

int f1 () {
  struct A {
    A() : b (2) { }
    fred () { return b.hi_mom; }
    struct B {
      int hi_mom;
      B (int a) { hi_mom = a; }
    };
    B b;
  };
  A aa;
  return aa.fred();
}
/* crashes with signal 11 */