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 tests/lint: move test for __attrib...
details: https://anonhg.NetBSD.org/src/rev/b080ed577856
branches: trunk
changeset: 984485:b080ed577856
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jul 10 06:01:41 2021 +0000
description:
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.
diffstat:
tests/usr.bin/xlint/lint1/decl_arg.c | 7 ++++++-
tests/usr.bin/xlint/lint1/msg_124.c | 5 +----
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 3798f0f5b4f5 -r b080ed577856 tests/usr.bin/xlint/lint1/decl_arg.c
--- a/tests/usr.bin/xlint/lint1/decl_arg.c Sat Jul 10 05:42:29 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/decl_arg.c Sat Jul 10 06:01:41 2021 +0000
@@ -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 @@
{
return arg;
}
+
+void test_varargs_attribute(
+ void (*pr)(const char *, ...)
+ __attribute__((__format__(__printf__, 1, 2)))
+);
diff -r 3798f0f5b4f5 -r b080ed577856 tests/usr.bin/xlint/lint1/msg_124.c
--- a/tests/usr.bin/xlint/lint1/msg_124.c Sat Jul 10 05:42:29 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_124.c Sat Jul 10 06:01:41 2021 +0000
@@ -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 @@
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