Module Name: src Committed By: rillig Date: Sat Jul 10 06:01:41 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: decl_arg.c msg_124.c Log Message: tests/lint: move test for __attribute__ out of msg_124.c That test case didn't belong there since there was no chance of getting an 'illegal pointer combination' by applying an operator. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/decl_arg.c cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/xlint/lint1/msg_124.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_arg.c diff -u src/tests/usr.bin/xlint/lint1/decl_arg.c:1.1 src/tests/usr.bin/xlint/lint1/decl_arg.c:1.2 --- src/tests/usr.bin/xlint/lint1/decl_arg.c:1.1 Fri Jul 9 20:20:03 2021 +++ src/tests/usr.bin/xlint/lint1/decl_arg.c Sat Jul 10 06:01:41 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: decl_arg.c,v 1.1 2021/07/09 20:20:03 rillig Exp $ */ +/* $NetBSD: decl_arg.c,v 1.2 2021/07/10 06:01:41 rillig Exp $ */ # 3 "decl_arg.c" /* @@ -91,3 +91,8 @@ const { return arg; } + +void test_varargs_attribute( + void (*pr)(const char *, ...) + __attribute__((__format__(__printf__, 1, 2))) +); Index: src/tests/usr.bin/xlint/lint1/msg_124.c diff -u src/tests/usr.bin/xlint/lint1/msg_124.c:1.9 src/tests/usr.bin/xlint/lint1/msg_124.c:1.10 --- src/tests/usr.bin/xlint/lint1/msg_124.c:1.9 Tue Apr 13 22:21:19 2021 +++ src/tests/usr.bin/xlint/lint1/msg_124.c Sat Jul 10 06:01:41 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: msg_124.c,v 1.9 2021/04/13 22:21:19 christos Exp $ */ +/* $NetBSD: msg_124.c,v 1.10 2021/07/10 06:01:41 rillig Exp $ */ # 3 "msg_124.c" // Test for message: illegal pointer combination (%s) and (%s), op %s [124] @@ -49,6 +49,3 @@ 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)))); -