Module Name:    src
Committed By:   rillig
Date:           Mon Dec 28 11:19:01 UTC 2020

Modified Files:
        src/tests/usr.bin/xlint/lint1: Makefile t_integration.sh
Added Files:
        src/tests/usr.bin/xlint/lint1: d_cvt_constant.exp

Log Message:
lint1: enable test cvt_constant

This test had never been enabled.  In t_integration.sh 1.3 from
2014-04-17 it was supposed to be enabled, but due to a line continuation
backslash, the words "test_case check_valid" ended up as the description
of the previous test, cvt_in_ternary.

While here, add the expected test output for d_struct_init_nested to
FILES.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/d_cvt_constant.exp
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/t_integration.sh

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/xlint/lint1/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.18 src/tests/usr.bin/xlint/lint1/Makefile:1.19
--- src/tests/usr.bin/xlint/lint1/Makefile:1.18	Mon Dec 28 10:22:21 2020
+++ src/tests/usr.bin/xlint/lint1/Makefile	Mon Dec 28 11:19:01 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2020/12/28 10:22:21 rillig Exp $
+# $NetBSD: Makefile,v 1.19 2020/12/28 11:19:01 rillig Exp $
 
 NOMAN=		# defined
 
@@ -44,6 +44,7 @@ FILES+=		d_constant_conv1.exp
 FILES+=		d_constant_conv2.c
 FILES+=		d_constant_conv2.exp
 FILES+=		d_cvt_constant.c
+FILES+=		d_cvt_constant.exp
 FILES+=		d_cvt_in_ternary.c
 FILES+=		d_ellipsis_in_switch.c
 FILES+=		d_gcc_compound_statements1.c
@@ -61,6 +62,7 @@ FILES+=		d_nolimit_init.c
 FILES+=		d_packed_structs.c
 FILES+=		d_shift_to_narrower_type.c
 FILES+=		d_struct_init_nested.c
+FILES+=		d_struct_init_nested.exp
 FILES+=		d_type_conv1.c
 FILES+=		d_type_conv1.exp
 FILES+=		d_type_conv2.c

Index: src/tests/usr.bin/xlint/lint1/t_integration.sh
diff -u src/tests/usr.bin/xlint/lint1/t_integration.sh:1.7 src/tests/usr.bin/xlint/lint1/t_integration.sh:1.8
--- src/tests/usr.bin/xlint/lint1/t_integration.sh:1.7	Mon Dec 28 10:22:21 2020
+++ src/tests/usr.bin/xlint/lint1/t_integration.sh	Mon Dec 28 11:19:01 2020
@@ -1,4 +1,4 @@
-# $NetBSD: t_integration.sh,v 1.7 2020/12/28 10:22:21 rillig Exp $
+# $NetBSD: t_integration.sh,v 1.8 2020/12/28 11:19:01 rillig Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -101,8 +101,8 @@ test_case check_valid gcc_compound_state
 # 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 ?" \
-test_case check_valid cvt_constant "Checks constant conversion"
+test_case check_valid cvt_in_ternary "Checks CVT nodes handling in ?"
+test_case check_invalid 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"

Added files:

Index: src/tests/usr.bin/xlint/lint1/d_cvt_constant.exp
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_cvt_constant.exp:1.1
--- /dev/null	Mon Dec 28 11:19:01 2020
+++ src/tests/usr.bin/xlint/lint1/d_cvt_constant.exp	Mon Dec 28 11:19:01 2020
@@ -0,0 +1,2 @@
+(7): warning: x set but not used in function main [191]
+(11): warning: function main falls off bottom without returning value [217]

Reply via email to