Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/util/xlint/lint1 add 2 more tests, sort
details: https://anonhg.NetBSD.org/src/rev/f72726750ec2
branches: trunk
changeset: 772235:f72726750ec2
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 25 20:16:05 2011 +0000
description:
add 2 more tests, sort
diffstat:
tests/util/xlint/lint1/Makefile | 8 +++++---
tests/util/xlint/lint1/d_c99_decls_after_stmt2.c | 6 ++++++
tests/util/xlint/lint1/d_typename_as_var.c | 14 ++++++++++++++
3 files changed, 25 insertions(+), 3 deletions(-)
diffs (65 lines):
diff -r ec4542f3ed02 -r f72726750ec2 tests/util/xlint/lint1/Makefile
--- a/tests/util/xlint/lint1/Makefile Sun Dec 25 20:15:34 2011 +0000
+++ b/tests/util/xlint/lint1/Makefile Sun Dec 25 20:16:05 2011 +0000
@@ -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 @@
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_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_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>
diff -r ec4542f3ed02 -r f72726750ec2 tests/util/xlint/lint1/d_c99_decls_after_stmt2.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/util/xlint/lint1/d_c99_decls_after_stmt2.c Sun Dec 25 20:16:05 2011 +0000
@@ -0,0 +1,6 @@
+typedef int int_t;
+int main(void) {
+int i = 0; i += 1;
+int_t j = 0; j += 1;
+return 0;
+}
diff -r ec4542f3ed02 -r f72726750ec2 tests/util/xlint/lint1/d_typename_as_var.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/util/xlint/lint1/d_typename_as_var.c Sun Dec 25 20:16:05 2011 +0000
@@ -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;
+};
Home |
Main Index |
Thread Index |
Old Index