Module Name:    src
Committed By:   rillig
Date:           Sun Oct 22 21:30:32 UTC 2023

Modified Files:
        src/tests/usr.bin/xlint/lint1: decl_direct_abstract.c

Log Message:
tests/lint: test GCC attributes after abstract function type


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
    src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c
diff -u src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c:1.10 src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c:1.11
--- src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c:1.10	Wed Aug  2 21:11:35 2023
+++ src/tests/usr.bin/xlint/lint1/decl_direct_abstract.c	Sun Oct 22 21:30:32 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: decl_direct_abstract.c,v 1.10 2023/08/02 21:11:35 rillig Exp $	*/
+/*	$NetBSD: decl_direct_abstract.c,v 1.11 2023/10/22 21:30:32 rillig Exp $	*/
 # 3 "decl_direct_abstract.c"
 
 /*
@@ -215,3 +215,12 @@ int prototype_named_32_return_04[-1000 -
 /* expect+2: error: cannot take size/alignment of function type 'function(struct typedef a32) returning struct typedef a08' [144] */
 /* expect+1: error: negative array dimension (-1000) [20] */
 int prototype_named_32_return_08[-1000 - (int)sizeof(a08(a32 arg))];
+
+void
+abstract_decl_param_list_with_attributes(void)
+{
+	typedef int unspecified_parameters(void (*)() __attribute__(()));
+	typedef int no_parameters(void (*)(void) __attribute__(()));
+	typedef int single_parameter(void (*)(int) __attribute__(()));
+	typedef int several_parameters(void (*)(int, int) __attribute__(()));
+}

Reply via email to