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