Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68668.c
blobd013aa92cef996bbd9ba7503cd8f5ffd766d5bda
1 /* PR c/68668 */
2 /* { dg-do compile } */
4 typedef const int T[];
5 typedef const int U[1];
7 int
8 fn1 (T p)
10 return p[0];
13 int
14 fn2 (U p[2])
16 return p[0][0];
19 int
20 fn3 (U p[2][3])
22 return p[0][0][0];
25 int
26 fn4 (U *p)
28 return p[0][0];
31 int
32 fn5 (U (*p)[1])
34 return (*p)[0][0];
37 int
38 fn6 (U (*p)[1][2])
40 return (*p)[0][0][0];
43 int
44 fn7 (U **p)
46 return p[0][0][0];
49 int
50 fn8 (U (**p)[1])
52 return (*p)[0][0][0];