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/443d61d57cb9
branches: trunk
changeset: 378460:443d61d57cb9
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 014ccfcc1092 -r 443d61d57cb9 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 @@ compare_pointers(const void *vp, const c
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