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 add a test for a type attribute af...



details:   https://anonhg.NetBSD.org/src/rev/2854af041689
branches:  trunk
changeset: 982456:2854af041689
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 13 22:21:19 2021 +0000

description:
add a test for a type attribute after a param function pointer

diffstat:

 tests/usr.bin/xlint/lint1/msg_124.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 71b7e8cfba6b -r 2854af041689 tests/usr.bin/xlint/lint1/msg_124.c
--- a/tests/usr.bin/xlint/lint1/msg_124.c       Tue Apr 13 19:16:51 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_124.c       Tue Apr 13 22:21:19 2021 +0000
@@ -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 @@
        ok(ip == 0L);
        ok(fp == 0L);
 }
+
+void   test_varargs_attribute(void (*pr)(const char *, ...) __attribute__((__format__(__printf__, 1, 2))));
+



Home | Main Index | Thread Index | Old Index