Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/xlint/lint1 test for c99 flexible packed arrays



details:   https://anonhg.NetBSD.org/src/rev/566db4aa5c5a
branches:  trunk
changeset: 333890:566db4aa5c5a
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 20 21:18:47 2014 +0000

description:
test for c99 flexible packed arrays

diffstat:

 tests/usr.bin/xlint/lint1/Makefile                  |  3 ++-
 tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c |  6 ++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r e4137b9decba -r 566db4aa5c5a tests/usr.bin/xlint/lint1/Makefile
--- a/tests/usr.bin/xlint/lint1/Makefile        Thu Nov 20 21:17:18 2014 +0000
+++ b/tests/usr.bin/xlint/lint1/Makefile        Thu Nov 20 21:18:47 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/11/20 20:52:15 christos Exp $
+# $NetBSD: Makefile,v 1.5 2014/11/20 21:18:47 christos Exp $
 
 NOMAN=         # defined
 
@@ -15,6 +15,7 @@
 FILES+=                d_c99_decls_after_stmt.c
 FILES+=                d_c99_decls_after_stmt2.c
 FILES+=                d_c99_decls_after_stmt3.c
+FILES+=                d_c99_flex_array_packed.c 
 FILES+=                d_c99_for_loops.c
 FILES+=                d_c99_func.c
 FILES+=                d_c99_recursive_init.c
diff -r e4137b9decba -r 566db4aa5c5a tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c       Thu Nov 20 21:18:47 2014 +0000
@@ -0,0 +1,6 @@
+/* Allow packed c99 flexible arrays */
+struct {
+       int x;
+       char y[0];
+} __packed foo;
+



Home | Main Index | Thread Index | Old Index