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