1*c85f09ccSJohn Levon extern int arr[];
test_arr_addr(int i)2*c85f09ccSJohn Levon int test_arr_addr(int i)
3*c85f09ccSJohn Levon {
4*c85f09ccSJohn Levon 	if (!&arr) return 1;
5*c85f09ccSJohn Levon 	return 0;
6*c85f09ccSJohn Levon }
7*c85f09ccSJohn Levon 
test_arr_addr0(int i)8*c85f09ccSJohn Levon int test_arr_addr0(int i)
9*c85f09ccSJohn Levon {
10*c85f09ccSJohn Levon 	if (!&arr[0]) return 1;
11*c85f09ccSJohn Levon 	return 0;
12*c85f09ccSJohn Levon }
13*c85f09ccSJohn Levon 
test_arr_degen(int i)14*c85f09ccSJohn Levon int test_arr_degen(int i)
15*c85f09ccSJohn Levon {
16*c85f09ccSJohn Levon 	if (!arr) return 1;
17*c85f09ccSJohn Levon 	return 0;
18*c85f09ccSJohn Levon }
19*c85f09ccSJohn Levon 
20*c85f09ccSJohn Levon extern int fun(void);
test_fun_addr(int i)21*c85f09ccSJohn Levon int test_fun_addr(int i)
22*c85f09ccSJohn Levon {
23*c85f09ccSJohn Levon 	if (!&fun) return 1;
24*c85f09ccSJohn Levon 	return 0;
25*c85f09ccSJohn Levon }
26*c85f09ccSJohn Levon 
test_fun_degen(int i)27*c85f09ccSJohn Levon int test_fun_degen(int i)
28*c85f09ccSJohn Levon {
29*c85f09ccSJohn Levon 	if (!fun) return 1;
30*c85f09ccSJohn Levon 	return 0;
31*c85f09ccSJohn Levon }
32*c85f09ccSJohn Levon 
33*c85f09ccSJohn Levon /*
34*c85f09ccSJohn Levon  * check-name: degenerate logical-not
35*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl $file
36*c85f09ccSJohn Levon  *
37*c85f09ccSJohn Levon  * check-output-ignore
38*c85f09ccSJohn Levon  * check-output-excludes: load
39*c85f09ccSJohn Levon  * check-output-excludes: VOID
40*c85f09ccSJohn Levon  */
41