aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900321_04.C
blob: 72c063e42ac37aadfd12343cf3d4e8ce0fcfce32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
// g++ 1.37.1 bug 900321_04

// The following code causes g++ to segfault.

// Cfront 2.0 passes this test.

// keywords: segfault, object declaration, pointer, array, incomplete type

struct incomplete;

void function ()
{
  struct incomplete (*ptr)[];		// causes segfault
}

int main () { return 0; }