msg_210.c revision 1.6
1/* $NetBSD: msg_210.c,v 1.6 2022/06/16 21:24:41 rillig Exp $ */ 2# 3 "msg_210.c" 3 4// Test for message: enum type mismatch between '%s' and '%s' in initialization [210] 5 6enum A { 7 A1 8}; 9 10enum B { 11 B1 12}; 13 14typedef enum { 15 C1 16} C; 17 18typedef enum { 19 D1 20} D; 21 22enum A a1 = A1; 23/* expect+1: warning: enum type mismatch between 'enum A' and 'enum B' in initialization [210] */ 24enum A a2 = B1; 25C c1 = C1; 26/* expect+1: warning: enum type mismatch between 'enum typedef C' and 'enum typedef D' in initialization [210] */ 27C c2 = D1; 28