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: cover abstract_declara...
details: https://anonhg.NetBSD.org/src/rev/e8dd14d6f7e1
branches: trunk
changeset: 984670:e8dd14d6f7e1
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Jul 15 21:34:11 2021 +0000
description:
tests/lint: cover abstract_declaration, discover internal error
diffstat:
tests/usr.bin/xlint/lint1/decl.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 7a2f0db8e675 -r e8dd14d6f7e1 tests/usr.bin/xlint/lint1/decl.c
--- a/tests/usr.bin/xlint/lint1/decl.c Thu Jul 15 21:22:19 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/decl.c Thu Jul 15 21:34:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.6 2021/07/15 21:00:05 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.7 2021/07/15 21:34:11 rillig Exp $ */
# 3 "decl.c"
/*
@@ -127,3 +127,11 @@
/* covers 'type_qualifier_list: type_qualifier_list type_qualifier' */
int *const volatile cover_type_qualifier_list;
+
+unsigned long cover_abstract_declaration_declmods = sizeof(const);
+unsigned long cover_abstract_declaration_declmods_abstract_declarator =
+ sizeof(const *);
+// FIXME:
+// lint: internal error in decl.c:833 near decl.c:135: end_type(unsigned long)
+//unsigned long cover_abstract_declarator_typeof =
+// sizeof(const typeof(cover_abstract_declaration_declmods));
Home |
Main Index |
Thread Index |
Old Index