msg_260.c revision 1.4
11.4Srillig/* $NetBSD: msg_260.c,v 1.4 2021/08/16 06:49:57 rillig Exp $ */ 21.1Srillig# 3 "msg_260.c" 31.1Srillig 41.1Srillig// Test for message: previous declaration of %s [260] 51.1Srillig 61.3Srillig/* lint1-extra-flags: -r */ 71.3Srillig 81.3Srillig# 100 "header.h" 1 91.4Srillig/* expect+1: previous declaration of s [260] */ 101.4Srilligstruct s { 111.3Srillig int member; 121.3Srillig}; 131.4Srillig# 14 "msg_260.c" 2 141.3Srillig 151.3Srillig# 200 "header.h" 1 161.4Srillig/* expect+2: error: struct tag 's' redeclared as union [46] */ 171.4Srillig/* expect+1: previous declaration of s [260] */ 181.4Srilligunion s { 191.3Srillig int member; 201.3Srillig}; 211.3Srillig/* 221.4Srillig * FIXME: the stack trace for the message 260 is wrong, as the previous 231.4Srillig * declaration is included from logical line msg_260.c:8, not from 241.4Srillig * msg_260.c:15. 251.3Srillig */ 261.4Srillig# 27 "msg_260.c" 2 271.4Srillig/* expect+1: error: union tag 's' redeclared as union [46] */ 281.4Srilligunion s { 291.3Srillig int member; 301.3Srillig}; 311.3Srillig/* 321.3Srillig * FIXME: the stack trace for the 260 is missing. 331.3Srillig */ 34