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 new test.
details: https://anonhg.NetBSD.org/src/rev/90a1e90582d0
branches: trunk
changeset: 339173:90a1e90582d0
user: christos <christos%NetBSD.org@localhost>
date: Wed Jul 01 15:36:44 2015 +0000
description:
new test.
diffstat:
tests/usr.bin/xlint/lint1/Makefile | 3 ++-
tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c | 9 +++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 7e873deb3fd1 -r 90a1e90582d0 tests/usr.bin/xlint/lint1/Makefile
--- a/tests/usr.bin/xlint/lint1/Makefile Wed Jul 01 15:34:30 2015 +0000
+++ b/tests/usr.bin/xlint/lint1/Makefile Wed Jul 01 15:36:44 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2015/05/11 17:21:32 christos Exp $
+# $NetBSD: Makefile,v 1.8 2015/07/01 15:36:44 christos Exp $
NOMAN= # defined
@@ -27,6 +27,7 @@
FILES+= d_c99_union_init3.c
FILES+= d_c9x_array_init.c
FILES+= d_c9x_recursive_init.c
+FILES+= d_cast_fun_array_param.c
FILES+= d_cast_init.c
FILES+= d_cast_init2.c
FILES+= d_cast_lhs.c
diff -r 7e873deb3fd1 -r 90a1e90582d0 tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c Wed Jul 01 15:36:44 2015 +0000
@@ -0,0 +1,9 @@
+
+static void f(void *b[4]) {
+ (void)&b;
+}
+
+void *
+foo(void *fn) {
+ return fn == 0 ? f : (void (*)(void *[4])) fn;
+}
Home |
Main Index |
Thread Index |
Old Index