Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/usr.bin/xlint/lint1 add variable array dimension [gc...
details: https://anonhg.NetBSD.org/src/rev/8b59143bd1ac
branches: trunk
changeset: 538550:8b59143bd1ac
user: christos <christos%NetBSD.org@localhost>
date: Tue Oct 22 13:47:40 2002 +0000
description:
add variable array dimension [gcc extension]. Does C9X support this?
diffstat:
regress/usr.bin/xlint/lint1/test8.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 5400c80f0a23 -r 8b59143bd1ac regress/usr.bin/xlint/lint1/test8.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/regress/usr.bin/xlint/lint1/test8.c Tue Oct 22 13:47:40 2002 +0000
@@ -0,0 +1,7 @@
+/* gcc: variable array initializer */
+void foo(int i)
+{
+ int array[i];
+ while (i--)
+ foo(array[i] = 0);
+}
Home |
Main Index |
Thread Index |
Old Index