Module Name:    src
Committed By:   tls
Date:           Sun Aug 10 06:57:37 UTC 2014

Modified Files:
        src/tests/usr.bin/nbperf [tls-earlyentropy]: t_nbperf.sh
        src/tests/usr.bin/xlint/lint1 [tls-earlyentropy]: Makefile
            t_integration.sh
Added Files:
        src/tests/usr.bin/xlint/lint1 [tls-earlyentropy]: d_c99_complex_split.c
            d_cvt_constant.c d_gcc_extension.c

Log Message:
Rebase.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.10.1 src/tests/usr.bin/nbperf/t_nbperf.sh
cvs rdiff -u -r1.2 -r1.2.2.1 src/tests/usr.bin/xlint/lint1/Makefile \
    src/tests/usr.bin/xlint/lint1/t_integration.sh
cvs rdiff -u -r0 -r1.2.4.2 \
    src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c
cvs rdiff -u -r0 -r1.1.4.2 src/tests/usr.bin/xlint/lint1/d_cvt_constant.c \
    src/tests/usr.bin/xlint/lint1/d_gcc_extension.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/usr.bin/nbperf/t_nbperf.sh
diff -u src/tests/usr.bin/nbperf/t_nbperf.sh:1.2 src/tests/usr.bin/nbperf/t_nbperf.sh:1.2.10.1
--- src/tests/usr.bin/nbperf/t_nbperf.sh:1.2	Tue Sep 25 20:53:46 2012
+++ src/tests/usr.bin/nbperf/t_nbperf.sh	Sun Aug 10 06:57:37 2014
@@ -1,4 +1,4 @@
-# $NetBSD: t_nbperf.sh,v 1.2 2012/09/25 20:53:46 joerg Exp $
+# $NetBSD: t_nbperf.sh,v 1.2.10.1 2014/08/10 06:57:37 tls Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -34,6 +34,8 @@ atf_test_case chm
 chm_head()
 {
 	atf_set "descr" "Checks chm algorithm"
+	atf_set "require.files" "/usr/share/dict/web2"
+	atf_set "require.progs" "cc"
 }
 chm_body()
 { 
@@ -56,6 +58,8 @@ atf_test_case chm3
 chm3_head()
 {
 	atf_set "descr" "Checks chm3 algorithm"
+	atf_set "require.files" "/usr/share/dict/web2"
+	atf_set "require.progs" "cc"
 }
 chm3_body()
 { 
@@ -78,6 +82,8 @@ atf_test_case bdz
 bdz_head()
 {
 	atf_set "descr" "Checks bdz algorithm"
+	atf_set "require.files" "/usr/share/dict/web2"
+	atf_set "require.progs" "cc"
 }
 bdz_body()
 { 

Index: src/tests/usr.bin/xlint/lint1/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.2 src/tests/usr.bin/xlint/lint1/Makefile:1.2.2.1
--- src/tests/usr.bin/xlint/lint1/Makefile:1.2	Tue Feb  4 08:08:59 2014
+++ src/tests/usr.bin/xlint/lint1/Makefile	Sun Aug 10 06:57:37 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2014/02/04 08:08:59 njoly Exp $
+# $NetBSD: Makefile,v 1.2.2.1 2014/08/10 06:57:37 tls Exp $
 
 NOMAN=		# defined
 
@@ -11,6 +11,7 @@ TESTS_SH=	t_integration
 FILESDIR=	${TESTSDIR}
 FILES+=		d_alignof.c
 FILES+=		d_c99_complex_num.c
+FILES+=		d_c99_complex_split.c
 FILES+=		d_c99_decls_after_stmt.c
 FILES+=		d_c99_decls_after_stmt2.c
 FILES+=		d_c99_decls_after_stmt3.c
@@ -31,10 +32,12 @@ FILES+=		d_compound_literals2.c
 FILES+=		d_constant_conv1.c
 FILES+=		d_constant_conv2.c
 FILES+=		d_cvt_in_ternary.c
+FILES+=		d_cvt_constant.c
 FILES+=		d_ellipsis_in_switch.c
 FILES+=		d_gcc_compound_statements1.c
 FILES+=		d_gcc_compound_statements2.c
 FILES+=		d_gcc_compound_statements3.c
+FILES+=		d_gcc_extension.c
 FILES+=		d_gcc_func.c
 FILES+=		d_gcc_variable_array_init.c
 FILES+=		d_incorrect_array_size.c
Index: src/tests/usr.bin/xlint/lint1/t_integration.sh
diff -u src/tests/usr.bin/xlint/lint1/t_integration.sh:1.2 src/tests/usr.bin/xlint/lint1/t_integration.sh:1.2.2.1
--- src/tests/usr.bin/xlint/lint1/t_integration.sh:1.2	Tue Feb  4 08:08:59 2014
+++ src/tests/usr.bin/xlint/lint1/t_integration.sh	Sun Aug 10 06:57:37 2014
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.2 2014/02/04 08:08:59 njoly Exp $
+# $NetBSD: t_integration.sh,v 1.2.2.1 2014/08/10 06:57:37 tls Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -93,11 +93,14 @@ test_case check_valid gcc_compound_state
     "statements with non-expressions"
 test_case check_valid gcc_compound_statements3 "Checks GCC compound" \
     "statements with void type"
+# XXX: Because of polymorphic __builtin_isnan and expression has null effect
+# test_case check_valid gcc_extension "Checks GCC __extension__ and __typeof__"
 
 test_case check_valid cvt_in_ternary "Checks CVT nodes handling in ?" \
-    "operator"
+test_case check_valid cvt_constant "Checks constant conversion"
 test_case check_valid ellipsis_in_switch "Checks ellipsis in switch()"
 test_case check_valid c99_complex_num "Checks C99 complex numbers"
+test_case check_valid c99_complex_split "Checks C99 complex access"
 test_case check_valid c99_for_loops "Checks C99 for loops"
 test_case check_valid alignof "Checks __alignof__"
 test_case check_valid shift_to_narrower_type "Checks that type shifts that" \

Added files:

Index: src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c:1.2.4.2
--- /dev/null	Sun Aug 10 06:57:37 2014
+++ src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c	Sun Aug 10 06:57:37 2014
@@ -0,0 +1,8 @@
+int b(double a) {
+	return a == 0;
+}
+void a(void) {
+    double _Complex z = 0;
+    if (b(__real__ z) && b(__imag__ z))
+	return;
+}

Index: src/tests/usr.bin/xlint/lint1/d_cvt_constant.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_cvt_constant.c:1.1.4.2
--- /dev/null	Sun Aug 10 06:57:37 2014
+++ src/tests/usr.bin/xlint/lint1/d_cvt_constant.c	Sun Aug 10 06:57:37 2014
@@ -0,0 +1,8 @@
+/* the second assignment assumes failed before */
+int
+main(void) {
+    double x = 1;
+    int foo = 0;
+    if (foo)
+	x = 1;
+}
Index: src/tests/usr.bin/xlint/lint1/d_gcc_extension.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_gcc_extension.c:1.1.4.2
--- /dev/null	Sun Aug 10 06:57:37 2014
+++ src/tests/usr.bin/xlint/lint1/d_gcc_extension.c	Sun Aug 10 06:57:37 2014
@@ -0,0 +1,6 @@
+/* extension */
+void a(void) {
+    double __logbw = 1;
+    if (__extension__(({ __typeof((__logbw)) x_ = (__logbw); !__builtin_isinf((x_)) && !__builtin_isnan((x_)); })))
+	__logbw = 1;
+}

Reply via email to