xref: /netbsd/tests/usr.bin/xlint/lint1/msg_308.c (revision ea649623)
1 /*	$NetBSD: msg_308.c,v 1.8 2023/03/28 14:44:35 rillig Exp $	*/
2 # 3 "msg_308.c"
3 
4 // Test for message: invalid type for _Complex [308]
5 
6 /* lint1-extra-flags: -X 351 */
7 
8 float _Complex float_complex;
9 double _Complex double_complex;
10 long double _Complex long_double_complex;
11 
12 /* expect+1: error: invalid type for _Complex [308] */
13 _Complex plain_complex;
14 
15 /* expect+2: error: invalid type for _Complex [308] */
16 /* expect+1: error: illegal type combination [4] */
17 int _Complex int_complex;
18