gcc/testsuite/gcc.dg/pr88701.c
raw| 1 | /* PR c/88701 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c99 -pedantic-errors" } */ |
| 4 | |
| 5 | void foo (int [(int (*)[1]) { 0 } == 0]); |
| 6 | void bar (int n, int [(int (*)[n]) { 0 } == 0]); |
| 7 | |
| 8 | int |
| 9 | baz (int a[(int (*)[1]) { 0 } == 0]) |
| 10 | { |
| 11 | return a[0]; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | qux (int n, int a[(int (*)[n]) { 0 } == 0]) |
| 16 | { |
| 17 | return a[0] + n; |
| 18 | } |