summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-02-05 10:57:48 +0000
committerrillig <rillig@NetBSD.org>2023-02-05 10:57:48 +0000
commitacc3192b43364daa6cfd7cd08053c2963fd6528c (patch)
tree04e7b7be94edcc257f4c82b531039121791db35d /tests
parentfe3f53e45a3cc3fbde226d9aad2f4b3a0a4bedcd (diff)
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 (limited to 'tests')
-rw-r--r--tests/usr.bin/xlint/lint1/d_c99_complex_split.c11
-rw-r--r--tests/usr.bin/xlint/lint1/gcc_attribute_type.c6
-rw-r--r--tests/usr.bin/xlint/lint1/gcc_attribute_var.c6
-rw-r--r--tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c6
4 files changed, 4 insertions, 25 deletions
diff --git a/tests/usr.bin/xlint/lint1/d_c99_complex_split.c b/tests/usr.bin/xlint/lint1/d_c99_complex_split.c
index 738a8fafdd5..3dd35788147 100644
--- a/tests/usr.bin/xlint/lint1/d_c99_complex_split.c
+++ b/tests/usr.bin/xlint/lint1/d_c99_complex_split.c
@@ -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)
{
diff --git a/tests/usr.bin/xlint/lint1/gcc_attribute_type.c b/tests/usr.bin/xlint/lint1/gcc_attribute_type.c
index 54a25439bb0..0c10fa593bc 100644
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_type.c
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_type.c
@@ -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));
diff --git a/tests/usr.bin/xlint/lint1/gcc_attribute_var.c b/tests/usr.bin/xlint/lint1/gcc_attribute_var.c
index 09c24e7b0b0..c4bf00ee889 100644
--- a/tests/usr.bin/xlint/lint1/gcc_attribute_var.c
+++ b/tests/usr.bin/xlint/lint1/gcc_attribute_var.c
@@ -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));
diff --git a/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c b/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c
index ee171ecf183..fa9d198424d 100644
--- a/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c
+++ b/tests/usr.bin/xlint/lint1/gcc_typeof_after_statement.c
@@ -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);