blob: f6a833f0dc5fc03fb5637eb364bd4fd64f59296d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* $NetBSD: msg_278.c,v 1.5 2023/03/28 14:44:35 rillig Exp $ */
# 3 "msg_278.c"
// Test for message: combination of '%s' and '%s', arg #%d [278]
/* lint1-extra-flags: -e -X 351 */
enum E {
E1
};
void sink_enum(enum E);
void sink_int(int);
void
example(enum E e, int i)
{
sink_enum(e);
/* expect+1: warning: combination of 'enum E' and 'int', arg #1 [278] */
sink_enum(i);
/* expect+1: warning: combination of 'int' and 'enum E', arg #1 [278] */
sink_int(e);
sink_int(i);
}
|