Module Name:    src
Committed By:   christos
Date:           Sun Dec 25 20:16:05 UTC 2011

Modified Files:
        src/tests/util/xlint/lint1: Makefile
Added Files:
        src/tests/util/xlint/lint1: d_c99_decls_after_stmt2.c
            d_typename_as_var.c

Log Message:
add 2 more tests, sort


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/util/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/util/xlint/lint1/d_c99_decls_after_stmt2.c \
    src/tests/util/xlint/lint1/d_typename_as_var.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/util/xlint/lint1/Makefile
diff -u src/tests/util/xlint/lint1/Makefile:1.2 src/tests/util/xlint/lint1/Makefile:1.3
--- src/tests/util/xlint/lint1/Makefile:1.2	Tue Oct  4 12:24:27 2011
+++ src/tests/util/xlint/lint1/Makefile	Sun Dec 25 15:16:05 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/10/04 16:24:27 christos Exp $
+# $NetBSD: Makefile,v 1.3 2011/12/25 20:16:05 christos Exp $
 
 NOMAN=		# defined
 
@@ -9,8 +9,10 @@ TESTSDIR=	${TESTSBASE}/util/xlint/lint1
 TESTS_SH=	t_integration
 
 FILESDIR=	${TESTSDIR}
-FILES=		d_c99_complex_num.c
 FILES+=		d_alignof.c
+FILES+=		d_c99_complex_num.c
+FILES+=		d_c99_decls_after_stmt.c
+FILES+=		d_c99_decls_after_stmt2.c
 FILES+=		d_c99_for_loops.c
 FILES+=		d_c99_func.c
 FILES+=		d_c99_recursive_init.c
@@ -20,7 +22,6 @@ FILES+=		d_c99_union_init2.c
 FILES+=		d_c99_union_init3.c
 FILES+=		d_c9x_array_init.c
 FILES+=		d_c9x_recursive_init.c
-FILES+=		d_c99_decls_after_stmt.c
 FILES+=		d_cast_init.c
 FILES+=		d_cast_init2.c
 FILES+=		d_cast_lhs.c
@@ -44,6 +45,7 @@ FILES+=		d_shift_to_narrower_type.c
 FILES+=		d_type_conv1.c
 FILES+=		d_type_conv2.c
 FILES+=		d_type_conv3.c
+FILES+=		d_typename_as_var.c
 FILES+=		d_zero_sized_arrays.c
 
 .include <bsd.test.mk>

Added files:

Index: src/tests/util/xlint/lint1/d_c99_decls_after_stmt2.c
diff -u /dev/null src/tests/util/xlint/lint1/d_c99_decls_after_stmt2.c:1.1
--- /dev/null	Sun Dec 25 15:16:05 2011
+++ src/tests/util/xlint/lint1/d_c99_decls_after_stmt2.c	Sun Dec 25 15:16:05 2011
@@ -0,0 +1,6 @@
+typedef int int_t;
+int main(void) {
+int i = 0; i += 1;
+int_t j = 0; j += 1;
+return 0;
+}
Index: src/tests/util/xlint/lint1/d_typename_as_var.c
diff -u /dev/null src/tests/util/xlint/lint1/d_typename_as_var.c:1.1
--- /dev/null	Sun Dec 25 15:16:05 2011
+++ src/tests/util/xlint/lint1/d_typename_as_var.c	Sun Dec 25 15:16:05 2011
@@ -0,0 +1,14 @@
+typedef char h[10];
+
+typedef struct {
+	int i;
+	char *c;
+} fh;
+
+struct foo {
+	fh h;
+	struct {
+		int x;
+		int y;
+	} fl;
+};

Reply via email to