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