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