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 new test.



details:   https://anonhg.NetBSD.org/src/rev/3d93915a2d23
branches:  trunk
changeset: 770126:3d93915a2d23
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 04 16:24:27 2011 +0000

description:
Add new test.

diffstat:

 tests/util/xlint/lint1/Makefile                 |  3 ++-
 tests/util/xlint/lint1/d_c99_decls_after_stmt.c |  5 +++++
 tests/util/xlint/lint1/t_integration.sh         |  3 ++-
 3 files changed, 9 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 2c26a681d6b3 -r 3d93915a2d23 tests/util/xlint/lint1/Makefile
--- a/tests/util/xlint/lint1/Makefile   Tue Oct 04 16:19:59 2011 +0000
+++ b/tests/util/xlint/lint1/Makefile   Tue Oct 04 16:24:27 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2010/07/18 10:11:01 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2011/10/04 16:24:27 christos Exp $
 
 NOMAN=         # defined
 
@@ -20,6 +20,7 @@
 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
diff -r 2c26a681d6b3 -r 3d93915a2d23 tests/util/xlint/lint1/d_c99_decls_after_stmt.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/util/xlint/lint1/d_c99_decls_after_stmt.c   Tue Oct 04 16:24:27 2011 +0000
@@ -0,0 +1,5 @@
+void sample(void)
+{
+  int i = 0; i += 1;
+  int j = 0; i += 1;
+}
diff -r 2c26a681d6b3 -r 3d93915a2d23 tests/util/xlint/lint1/t_integration.sh
--- a/tests/util/xlint/lint1/t_integration.sh   Tue Oct 04 16:19:59 2011 +0000
+++ b/tests/util/xlint/lint1/t_integration.sh   Tue Oct 04 16:24:27 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.2 2011/03/25 19:19:46 njoly Exp $
+# $NetBSD: t_integration.sh,v 1.3 2011/10/04 16:24:27 christos Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -81,6 +81,7 @@
 test_case check_valid gcc_variable_array_init "Checks GCC variable array" \
     "initializers"
 test_case check_valid c9x_array_init "Checks C9X array initializers"
+test_case check_valid c99_decls_after_stmt "Checks C99 decls after statements"
 test_case check_valid nolimit_init "Checks no limit initializers"
 test_case check_valid zero_sized_arrays "Checks zero sized arrays"
 



Home | Main Index | Thread Index | Old Index