Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: clean up
details: https://anonhg.NetBSD.org/src/rev/4647360ac1ad
branches: trunk
changeset: 373358:4647360ac1ad
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Feb 05 10:57:48 2023 +0000
description:
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.
diffstat:
tests/usr.bin/xlint/lint1/d_c99_complex_split.c | 11 +----------
tests/usr.bin/xlint/lint1/gcc_attribute_type.c | 6 +-----
tests/usr.bin/xlint/lint1/gcc_attribute_var.c | 6 +-----
tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c | 6 +-----
4 files changed, 4 insertions(+), 25 deletions(-)
diffs (76 lines):
diff -r b7fa4bb3500c -r 4647360ac1ad tests/usr.bin/xlint/lint1/d_c99_complex_split.c
--- a/tests/usr.bin/xlint/lint1/d_c99_complex_split.c Sat Feb 04 16:35:31 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_complex_split.c Sun Feb 05 10:57:48 2023 +0000
@@ -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 @@
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)
{
diff -r b7fa4bb3500c -r 4647360ac1ad tests/usr.bin/xlint/lint1/gcc_attribute_type.c
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_type.c Sat Feb 04 16:35:31 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_type.c Sun Feb 05 10:57:48 2023 +0000
@@ -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 @@
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));
diff -r b7fa4bb3500c -r 4647360ac1ad tests/usr.bin/xlint/lint1/gcc_attribute_var.c
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_var.c Sat Feb 04 16:35:31 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_var.c Sun Feb 05 10:57:48 2023 +0000
@@ -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 @@
)
{
}
-
-/* just to trigger _some_ error, to keep the .exp file */
-/* expect+1: error: syntax error ';' [249] */
-__attribute__((syntax_error));
diff -r b7fa4bb3500c -r 4647360ac1ad tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c
--- a/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c Sat Feb 04 16:35:31 2023 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c Sun Feb 05 10:57:48 2023 +0000
@@ -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 @@
ret;
});
}
-
-/* Just to keep the .exp file. */
-/* expect+1: warning: static function 'unused' declared but not defined [290] */
-static void unused(void);
Home |
Main Index |
Thread Index |
Old Index