msg_046.c revision 1.6
1/* $NetBSD: msg_046.c,v 1.6 2023/03/28 14:44:34 rillig Exp $ */ 2# 3 "msg_046.c" 3 4// Test for message: %s tag '%s' redeclared as %s [46] 5 6/* lint1-extra-flags: -X 351 */ 7 8/* expect+1: warning: struct 'tag1' never defined [233] */ 9struct tag1; 10/* expect+2: error: struct tag 'tag1' redeclared as union [46] */ 11/* expect+1: warning: union 'tag1' never defined [234] */ 12union tag1; 13 14/* expect+1: warning: union 'tag2' never defined [234] */ 15union tag2; 16/* expect+2: error: union tag 'tag2' redeclared as enum [46] */ 17/* expect+1: warning: enum 'tag2' never defined [235] */ 18enum tag2; 19 20/* expect+1: warning: enum 'tag3' never defined [235] */ 21enum tag3; 22/* expect+2: error: enum tag 'tag3' redeclared as struct [46] */ 23/* expect+1: warning: struct 'tag3' never defined [233] */ 24struct tag3; 25 26/* expect+2: error: union tag 'tag1' redeclared as struct [46] */ 27/* expect+1: warning: struct 'tag1' never defined [233] */ 28struct tag1 *use_tag1(void); 29/* expect+2: error: enum tag 'tag2' redeclared as union [46] */ 30/* expect+1: warning: union 'tag2' never defined [234] */ 31union tag2 *use_tag2(void); 32/* expect+2: error: struct tag 'tag3' redeclared as enum [46] */ 33/* expect+1: warning: enum 'tag3' never defined [235] */ 34enum tag3 *use_tag3(void); 35 36/* expect+2: error: struct tag 'tag1' redeclared as union [46] */ 37/* expect+1: warning: union 'tag1' never defined [234] */ 38union tag1 *mismatch_tag1(void); 39