Module Name: src Committed By: rillig Date: Sun Feb 5 10:57:48 UTC 2023
Modified Files: src/tests/usr.bin/xlint/lint1: d_c99_complex_split.c gcc_attribute_type.c gcc_attribute_var.c gcc_typeof_after_statement.c Log Message: tests/lint: clean up The .exp files are no longer kept under version control, so there's no reason anymore to forcefully trigger a warning or an error. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 \ src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c cvs rdiff -u -r1.4 -r1.5 \ src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.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/xlint/lint1/d_c99_complex_split.c diff -u src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c:1.11 src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c:1.12 --- src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c:1.11 Wed Jun 22 19:23:18 2022 +++ src/tests/usr.bin/xlint/lint1/d_c99_complex_split.c Sun Feb 5 10:57:48 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: d_c99_complex_split.c,v 1.11 2022/06/22 19:23:18 rillig Exp $ */ +/* $NetBSD: d_c99_complex_split.c,v 1.12 2023/02/05 10:57:48 rillig Exp $ */ # 3 "d_c99_complex_split.c" /* @@ -74,15 +74,6 @@ set_complex_only_imag(double im) sink(c); /* XXX: may be used before set */ } -/* Just to keep the .exp file alive. */ -void -trigger_warning(double _Complex c) -{ - c += 1.0; - /* expect+1: error: operands of '|' have incompatible types 'double _Complex' and 'double _Complex' [107] */ - return c | c; -} - void precedence_cast_expression(void) { Index: src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c diff -u src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c:1.3 src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c:1.4 --- src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c:1.3 Thu Aug 25 19:03:48 2022 +++ src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c Sun Feb 5 10:57:48 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: gcc_attribute_type.c,v 1.3 2022/08/25 19:03:48 rillig Exp $ */ +/* $NetBSD: gcc_attribute_type.c,v 1.4 2023/02/05 10:57:48 rillig Exp $ */ # 3 "gcc_attribute_type.c" /* @@ -25,7 +25,3 @@ struct attribute_before_keyword { unsigned char len[2]; unsigned long magic; }; - -/* just to trigger _some_ error, to keep the .exp file */ -/* expect+1: error: syntax error ';' [249] */ -__attribute__((syntax_error)); Index: src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c diff -u src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c:1.6 src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c:1.7 --- src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c:1.6 Thu Aug 25 19:03:48 2022 +++ src/tests/usr.bin/xlint/lint1/gcc_attribute_var.c Sun Feb 5 10:57:48 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: gcc_attribute_var.c,v 1.6 2022/08/25 19:03:48 rillig Exp $ */ +/* $NetBSD: gcc_attribute_var.c,v 1.7 2023/02/05 10:57:48 rillig Exp $ */ # 3 "gcc_attribute_var.c" /* @@ -69,7 +69,3 @@ attribute_after_array_brackets( ) { } - -/* just to trigger _some_ error, to keep the .exp file */ -/* expect+1: error: syntax error ';' [249] */ -__attribute__((syntax_error)); Index: src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c diff -u src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c:1.4 src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c:1.5 --- src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c:1.4 Wed Jun 22 19:23:18 2022 +++ src/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c Sun Feb 5 10:57:48 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: gcc_typeof_after_statement.c,v 1.4 2022/06/22 19:23:18 rillig Exp $ */ +/* $NetBSD: gcc_typeof_after_statement.c,v 1.5 2023/02/05 10:57:48 rillig Exp $ */ # 3 "gcc_typeof_after_statement.c" /* @@ -16,7 +16,3 @@ example(void **ptr) ret; }); } - -/* Just to keep the .exp file. */ -/* expect+1: warning: static function 'unused' declared but not defined [290] */ -static void unused(void);