Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr100619.c
blob5df02bdb8209785aa874aa3f385f7b103a779f05
1 /* PR c/100619 - ICE on a VLA parameter with too many dimensions
2 { dg-do compile }
3 { dg-options "-Wall" } */
5 extern int n;
7 #define A10 [n][n][n][n][n][n][n][n][n][n]
8 #define A100 A10 A10 A10 A10 A10 A10 A10 A10 A10 A10 A10
9 #define A1000 A100 A100 A100 A100 A100 A100 A100 A100 A100 A100 A100
11 void f10 (int A10);
12 void f10 (int A10);
14 void f100 (int A100);
15 void f100 (int A100);
17 void f1000 (int A1000);
18 void f1000 (int A1000);
20 void fx_1000 (int [ ]A1000);
21 void fx_1000 (int [1]A1000); // { dg-warning "-Warray-parameter" }
23 void fn_1000 (int [n ]A1000);
24 void fn_1000 (int [n + 1]A1000); // { dg-warning "-Wvla-parameter" }