msg_085.c revision 1.7 1 /* $NetBSD: msg_085.c,v 1.7 2023/06/30 19:10:49 rillig Exp $ */
2 # 3 "msg_085.c"
3
4 // Test for message: dubious tag declaration '%s %s' [85]
5
6 /*
7 * Declarations of structs/unions/enums in parameter lists are allowed
8 * but useless.
9 */
10
11 /* lint1-extra-flags: -X 351 */
12
13 /* expect+1: warning: dubious tag declaration 'struct in_argument' [85] */
14 void declare_struct(struct in_argument *);
15 /* expect+1: warning: dubious tag declaration 'union in_argument' [85] */
16 void declare_union(union in_argument *);
17 /* expect+1: warning: dubious tag declaration 'enum in_argument' [85] */
18 void declare_enum(enum in_argument *);
19
20 /* expect+1: warning: struct 'ok' never defined [233] */
21 struct ok;
22 extern int ok(struct ok *);
23