From f7e8f455fdb677e26f5eb75c2524b33bedec5b5a Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 13 Apr 2021 22:21:19 +0000 Subject: [PATCH] add a test for a type attribute after a param function pointer --- tests/usr.bin/xlint/lint1/msg_124.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/usr.bin/xlint/lint1/msg_124.c b/tests/usr.bin/xlint/lint1/msg_124.c index 5ad673fb3c8c..d0e8ec2ebb06 100644 --- a/tests/usr.bin/xlint/lint1/msg_124.c +++ b/tests/usr.bin/xlint/lint1/msg_124.c @@ -1,4 +1,4 @@ -/* $NetBSD: msg_124.c,v 1.8 2021/02/28 12:40:00 rillig Exp $ */ +/* $NetBSD: msg_124.c,v 1.9 2021/04/13 22:21:19 christos Exp $ */ # 3 "msg_124.c" // Test for message: illegal pointer combination (%s) and (%s), op %s [124] @@ -49,3 +49,6 @@ compare_pointers(const void *vp, const char *cp, const int *ip, ok(ip == 0L); ok(fp == 0L); } + +void test_varargs_attribute(void (*pr)(const char *, ...) __attribute__((__format__(__printf__, 1, 2)))); +