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: demonstrate internal e...
details: https://anonhg.NetBSD.org/src/rev/3e8d0b910fda
branches: trunk
changeset: 984825:3e8d0b910fda
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jul 25 06:04:40 2021 +0000
description:
tests/lint: demonstrate internal error in parsing a declaration
diffstat:
tests/usr.bin/xlint/lint1/decl_arg.c | 8 ++++++--
tests/usr.bin/xlint/lint1/decl_arg.exp | 24 ++++++++++++------------
2 files changed, 18 insertions(+), 14 deletions(-)
diffs (57 lines):
diff -r f6c79de8cd0d -r 3e8d0b910fda tests/usr.bin/xlint/lint1/decl_arg.c
--- a/tests/usr.bin/xlint/lint1/decl_arg.c Sun Jul 25 06:00:31 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_arg.c Sun Jul 25 06:04:40 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl_arg.c,v 1.5 2021/07/10 09:24:27 rillig Exp $ */
+/* $NetBSD: decl_arg.c,v 1.6 2021/07/25 06:04:40 rillig Exp $ */
# 3 "decl_arg.c"
/*
@@ -55,7 +55,8 @@
}
/*
- * Just some unrealistic coverage for the grammar rule 'notype_direct_decl'.
+ * Just some unrealistic coverage for the grammar rule
+ * 'notype_direct_declarator'.
*/
extern int
cover_notype_direct_decl(arg)
@@ -129,3 +130,6 @@
void cover_asm_or_symbolrename_symbolrename(void)
__symbolrename(alternate_name);
+
+// FIXME: internal error in decl.c:906 near decl_arg.c:134: length(0)
+//void cover_abstract_declarator_typeof(void (*)(typeof(no_args)));
diff -r f6c79de8cd0d -r 3e8d0b910fda tests/usr.bin/xlint/lint1/decl_arg.exp
--- a/tests/usr.bin/xlint/lint1/decl_arg.exp Sun Jul 25 06:00:31 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_arg.exp Sun Jul 25 06:04:40 2021 +0000
@@ -14,15 +14,15 @@
decl_arg.c(30): warning: argument 'a_number' unused in function 'old_style' [231]
decl_arg.c(30): warning: argument 'a_function' unused in function 'old_style' [231]
decl_arg.c(30): warning: argument 'a_struct' unused in function 'old_style' [231]
-decl_arg.c(64): error: declared argument name is missing [53]
-decl_arg.c(66): error: declared argument parenthesized_name is missing [53]
-decl_arg.c(68): error: declared argument array is missing [53]
-decl_arg.c(70): error: declared argument array_size is missing [53]
-decl_arg.c(73): error: null dimension [17]
-decl_arg.c(73): error: declared argument multi_array is missing [53]
-decl_arg.c(75): error: declared argument function is missing [53]
-decl_arg.c(77): error: declared argument prefix_attribute is missing [53]
-decl_arg.c(79): error: declared argument postfix_attribute is missing [53]
-decl_arg.c(81): error: declared argument infix_attribute is missing [53]
-decl_arg.c(90): error: declared argument pointer_prefix_attribute is missing [53]
-decl_arg.c(119): error: only register valid as formal parameter storage class [9]
+decl_arg.c(65): error: declared argument name is missing [53]
+decl_arg.c(67): error: declared argument parenthesized_name is missing [53]
+decl_arg.c(69): error: declared argument array is missing [53]
+decl_arg.c(71): error: declared argument array_size is missing [53]
+decl_arg.c(74): error: null dimension [17]
+decl_arg.c(74): error: declared argument multi_array is missing [53]
+decl_arg.c(76): error: declared argument function is missing [53]
+decl_arg.c(78): error: declared argument prefix_attribute is missing [53]
+decl_arg.c(80): error: declared argument postfix_attribute is missing [53]
+decl_arg.c(82): error: declared argument infix_attribute is missing [53]
+decl_arg.c(91): error: declared argument pointer_prefix_attribute is missing [53]
+decl_arg.c(120): error: only register valid as formal parameter storage class [9]
Home |
Main Index |
Thread Index |
Old Index