1 /* $NetBSD: msg_004.c,v 1.7 2023/03/28 14:44:34 rillig Exp $ */ 2 # 3 "msg_004.c" 3 4 // Test for message: illegal type combination [4] 5 6 /* lint1-extra-flags: -X 351 */ 7 8 // Lint does not detect "two or more data types", but GCC does. 9 signed double signed_double; 10 11 int ok_int; 12 double ok_double; 13 float _Complex ok_float_complex; 14 15 /* expect+2: error: invalid type for _Complex [308] */ 16 /* expect+1: error: illegal type combination [4] */ 17 int _Complex illegal_int_complex; 18 19 char enum { 20 CHAR 21 }; 22 /* expect-1: error: illegal type combination [4] */ 23 24 long struct { 25 int member; 26 }; 27 /* expect-1: error: illegal type combination [4] */ 28