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 lint: add code coverage for gramma...
details: https://anonhg.NetBSD.org/src/rev/751c8d6c6418
branches: trunk
changeset: 984489:751c8d6c6418
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jul 10 08:01:11 2021 +0000
description:
lint: add code coverage for grammar rule direct_notype_param_decl
diffstat:
tests/usr.bin/xlint/lint1/decl_arg.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 0f3ba98ccf7e -r 751c8d6c6418 tests/usr.bin/xlint/lint1/decl_arg.c
--- a/tests/usr.bin/xlint/lint1/decl_arg.c Sat Jul 10 07:50:33 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_arg.c Sat Jul 10 08:01:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl_arg.c,v 1.2 2021/07/10 06:01:41 rillig Exp $ */
+/* $NetBSD: decl_arg.c,v 1.3 2021/07/10 08:01:11 rillig Exp $ */
# 3 "decl_arg.c"
/*
@@ -96,3 +96,15 @@
void (*pr)(const char *, ...)
__attribute__((__format__(__printf__, 1, 2)))
);
+
+/*
+ * XXX: To cover the grammar rule 'direct_notype_param_decl', the parameters
+ * need to be enclosed by one more pair of parentheses than usual.
+ */
+void cover_direct_notype_param_decl(
+ double (f1),
+ double ((parenthesized)),
+ double (array[]),
+ double (array_size[3]),
+ double (*)(void (function()))
+);
Home |
Main Index |
Thread Index |
Old Index