diff options
Diffstat (limited to 'contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c')
-rw-r--r-- | contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c new file mode 100644 index 0000000..d5b01ad --- /dev/null +++ b/contrib/netbsd-tests/usr.bin/xlint/lint1/d_gcc_variable_array_init.c @@ -0,0 +1,7 @@ +/* gcc: variable array initializer */ +void foo(int i) +{ + int array[i]; + while (i--) + foo(array[i] = 0); +} |