Module Name:    src
Committed By:   christos
Date:           Fri Apr  3 21:37:26 UTC 2015

Modified Files:
        src/tests/usr.bin/xlint/lint1: Makefile
Added Files:
        src/tests/usr.bin/xlint/lint1: d_typefun.c

Log Message:
add test for typename as a function param


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/d_typefun.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/Makefile
diff -u src/tests/usr.bin/xlint/lint1/Makefile:1.5 src/tests/usr.bin/xlint/lint1/Makefile:1.6
--- src/tests/usr.bin/xlint/lint1/Makefile:1.5	Thu Nov 20 16:18:47 2014
+++ src/tests/usr.bin/xlint/lint1/Makefile	Fri Apr  3 17:37:26 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/11/20 21:18:47 christos Exp $
+# $NetBSD: Makefile,v 1.6 2015/04/03 21:37:26 christos Exp $
 
 NOMAN=		# defined
 
@@ -52,6 +52,7 @@ FILES+=		d_type_conv1.c
 FILES+=		d_type_conv2.c
 FILES+=		d_type_conv3.c
 FILES+=		d_typename_as_var.c
+FILES+=		d_typefun.c
 FILES+=		d_zero_sized_arrays.c
 
 .include <bsd.test.mk>

Added files:

Index: src/tests/usr.bin/xlint/lint1/d_typefun.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_typefun.c:1.1
--- /dev/null	Fri Apr  3 17:37:26 2015
+++ src/tests/usr.bin/xlint/lint1/d_typefun.c	Fri Apr  3 17:37:26 2015
@@ -0,0 +1,22 @@
+/* typedef of function parameter */
+
+typedef void (*free_func) (void * opaque, void* address);
+typedef struct stack_st
+{
+ int num;
+ char **data;
+ int sorted;
+
+ int num_alloc;
+ int (*comp)(const void *, const void *);
+} _STACK; /* Use STACK_OF(...) instead */
+
+typedef void *OPENSSL_BLOCK;
+struct stack_st_OPENSSL_BLOCK { _STACK stack; };
+typedef void *d2i_of_void(void **,const unsigned char **,long); typedef int i2d_of_void(void *,unsigned char **);
+
+struct stack_st_OPENSSL_BLOCK *d2i_ASN1_SET(struct stack_st_OPENSSL_BLOCK **a,
+         const unsigned char **pp,
+         long length, d2i_of_void *d2i,
+         void (*free_func)(OPENSSL_BLOCK), int ex_tag,
+         int ex_class);

Reply via email to