xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_260.c (revision 82d56013d7b633d116a93943de88e08335357a7c)
1 /*	$NetBSD: msg_260.c,v 1.3 2021/04/18 07:31:47 rillig Exp $	*/
2 # 3 "msg_260.c"
3 
4 // Test for message: previous declaration of %s [260]
5 
6 /* lint1-extra-flags: -r */
7 
8 # 100 "header.h" 1
9 struct s {		/* expect: 260 */
10     int member;
11 };
12 # 13 "msg_260.c" 2
13 
14 # 200 "header.h" 1
15 union s {		/* expect: tag redeclared *//* expect: 260 */
16     int member;
17 };
18 /*
19  * FIXME: the stack trace for the 260 is wrong, as the 260 is included from
20  * line 8, not from line 14.
21  */
22 # 19 "msg_160.c" 2
23 
24 union s {		/* expect: tag redeclared */
25     int member;
26 };
27 /*
28  * FIXME: the stack trace for the 260 is missing.
29  */
30