blob: 84af722dab465aab2b8e5070ceeceafaf8889efc (
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
26
27
28
29
30
31
32
33
|
/* $NetBSD: msg_260.c,v 1.5 2022/06/11 11:52:13 rillig Exp $ */
# 3 "msg_260.c"
// Test for message: previous declaration of '%s' [260]
/* lint1-extra-flags: -r */
# 100 "header.h" 1
/* expect+1: previous declaration of 's' [260] */
struct s {
int member;
};
# 14 "msg_260.c" 2
# 200 "header.h" 1
/* expect+2: error: struct tag 's' redeclared as union [46] */
/* expect+1: previous declaration of 's' [260] */
union s {
int member;
};
/*
* FIXME: the stack trace for the message 260 is wrong, as the previous
* declaration is included from logical line msg_260.c:8, not from
* msg_260.c:15.
*/
# 27 "msg_260.c" 2
/* expect+1: error: union tag 's' redeclared as union [46] */
union s {
int member;
};
/*
* FIXME: the stack trace for the 260 is missing.
*/
|