1 /* PR c/100619 - ICE on a VLA parameter with too many dimensions
2 { dg-do compile }
3 { dg-options "-Wall" } */
4
5 extern int n;
6
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
10
11 void f10 (int A10);
12 void f10 (int A10);
13
14 void f100 (int A100);
15 void f100 (int A100);
16
17 void f1000 (int A1000);
18 void f1000 (int A1000);
19
20 void fx_1000 (int [ ]A1000);
21 void fx_1000 (int [1]A1000); // { dg-warning "-Warray-parameter" }
22
23 void fn_1000 (int [n ]A1000);
24 void fn_1000 (int [n + 1]A1000); // { dg-warning "-Wvla-parameter" }