summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash14.C
blob: e7920588f5027799bdfbb37c3aa6fd73e839f15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }
// GROUPS passed old-abort
extern "C" int printf (const char *, ...);


class cl
{
  int i;
public:
  cl(int j = 0) {i = j;}
  int get_i() {return i;}
  };

int
main()
{
  cl ob[3] = {1, 2, 3};
  int i;

  for(i=0; i<3; i++)
    printf("%d\n", ob[i].get_i());

  return 0;
  }