summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.martin/crash1.C
blob: dd165b6bfdaed6a11a05a6a9f3d7b2b1ebfcf818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
int i = 4;
struct S{
  char c[i];      // ERROR - size not constant
  int h;
  int foo(){
    return h;
  }
};

int main()
{
  S x;
  int i = x.foo();
}
OpenPOWER on IntegriCloud