Module Name:    src
Committed By:   rillig
Date:           Sun May  2 21:47:28 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: gcc_bit_field_types.c
            gcc_bit_field_types.exp

Log Message:
tests/lint: fix test for GCC bit-field types

The whole purpose of this test is to try the message about invalid
bit-field types in GCC mode.  Therefore, use the default lint1-flags
that include -g.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c \
    src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp

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/gcc_bit_field_types.c
diff -u src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c:1.1 src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c:1.2
--- src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c:1.1	Sun May  2 21:22:09 2021
+++ src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.c	Sun May  2 21:47:28 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: gcc_bit_field_types.c,v 1.1 2021/05/02 21:22:09 rillig Exp $	*/
+/*	$NetBSD: gcc_bit_field_types.c,v 1.2 2021/05/02 21:47:28 rillig Exp $	*/
 # 3 "gcc_bit_field_types.c"
 
 /*
@@ -10,12 +10,6 @@
  * See msg_035.c.
  */
 
-// Test for message: illegal bit-field type '%s' [35]
-
-/* Omit -g, see gcc_bit_field_types.c. */
-/* lint1-flags: -Sw */
-
-/* Try all types from tspec_t. */
 struct example {
 	int int_flag: 1;
 	unsigned int unsigned_int_flag: 1;
Index: src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp
diff -u src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp:1.1 src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp:1.2
--- src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp:1.1	Sun May  2 21:22:09 2021
+++ src/tests/usr.bin/xlint/lint1/gcc_bit_field_types.exp	Sun May  2 21:47:28 2021
@@ -1,5 +1,5 @@
-gcc_bit_field_types.c(22): warning: illegal bit-field type 'long' [35]
-gcc_bit_field_types.c(23): warning: illegal bit-field type 'unsigned long' [35]
-gcc_bit_field_types.c(24): warning: illegal bit-field type 'long long' [35]
-gcc_bit_field_types.c(25): warning: illegal bit-field type 'unsigned long long' [35]
-gcc_bit_field_types.c(26): warning: illegal bit-field type 'double' [35]
+gcc_bit_field_types.c(16): warning: illegal bit-field type 'long' [35]
+gcc_bit_field_types.c(17): warning: illegal bit-field type 'unsigned long' [35]
+gcc_bit_field_types.c(18): warning: illegal bit-field type 'long long' [35]
+gcc_bit_field_types.c(19): warning: illegal bit-field type 'unsigned long long' [35]
+gcc_bit_field_types.c(20): warning: illegal bit-field type 'double' [35]

Reply via email to