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