]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr68668.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr68668.c
CommitLineData
66189108
MP
1/* PR c/68668 */
2/* { dg-do compile } */
3
4typedef const int T[];
5typedef const int U[1];
6
7int
8fn1 (T p)
9{
10 return p[0];
11}
12
13int
14fn2 (U p[2])
15{
16 return p[0][0];
17}
18
19int
20fn3 (U p[2][3])
21{
22 return p[0][0][0];
23}
24
25int
26fn4 (U *p)
27{
28 return p[0][0];
29}
30
31int
32fn5 (U (*p)[1])
33{
34 return (*p)[0][0];
35}
36
37int
38fn6 (U (*p)[1][2])
39{
40 return (*p)[0][0][0];
41}
42
43int
44fn7 (U **p)
45{
46 return p[0][0][0];
47}
48
49int
50fn8 (U (**p)[1])
51{
52 return (*p)[0][0][0];
53}