1*c85f09ccSJohn Levon extern int a[3];
2*c85f09ccSJohn Levon 
fa(int i)3*c85f09ccSJohn Levon int (*fa(int i))[] { return &a; }
f0(int i)4*c85f09ccSJohn Levon int *f0(int i) { return &a[0]; }
fd(int i)5*c85f09ccSJohn Levon int *fd(int i) { return  a; }
6*c85f09ccSJohn Levon 
7*c85f09ccSJohn Levon /*
8*c85f09ccSJohn Levon  * check-name: degen-array
9*c85f09ccSJohn Levon  * check-command: test-linearize -m64 -Wno-decl $file
10*c85f09ccSJohn Levon  * check-assert: sizeof(void *) == 8
11*c85f09ccSJohn Levon  *
12*c85f09ccSJohn Levon  * check-output-start
13*c85f09ccSJohn Levon fa:
14*c85f09ccSJohn Levon .L0:
15*c85f09ccSJohn Levon 	<entry-point>
16*c85f09ccSJohn Levon 	ret.64      a
17*c85f09ccSJohn Levon 
18*c85f09ccSJohn Levon 
19*c85f09ccSJohn Levon f0:
20*c85f09ccSJohn Levon .L2:
21*c85f09ccSJohn Levon 	<entry-point>
22*c85f09ccSJohn Levon 	ret.64      a
23*c85f09ccSJohn Levon 
24*c85f09ccSJohn Levon 
25*c85f09ccSJohn Levon fd:
26*c85f09ccSJohn Levon .L4:
27*c85f09ccSJohn Levon 	<entry-point>
28*c85f09ccSJohn Levon 	ret.64      a
29*c85f09ccSJohn Levon 
30*c85f09ccSJohn Levon 
31*c85f09ccSJohn Levon  * check-output-end
32*c85f09ccSJohn Levon  */
33