1 extern void afun(void);
2 extern void vcond(void);
16 static int bad_if(struct state s
)
18 if (vcond()) return 1;
22 static void bad_if2(int *a
, int *b
)
27 static int bad_sel(struct state s
)
29 return vcond() ? 1 : 0;
32 static int bad_loop_void(void)
45 static int good_if_int(int a
, _Bool b
, long c
, unsigned char d
)
53 static int good_if_float(float a
, double b
)
59 static int good_if_enum(void)
64 static int good_if_bitfield(struct state s
, struct state
*p
)
70 static int good_if_ptr(void *ptr
)
79 * check-name: conditional-type
82 conditional-type.c:18:18: error: incorrect type in conditional
83 conditional-type.c:18:18: got void
84 conditional-type.c:19:13: error: incorrect type in conditional
85 conditional-type.c:19:13: got struct state s
86 conditional-type.c:24:18: error: incorrect type in conditional
87 conditional-type.c:24:18: got void
88 conditional-type.c:29:21: error: incorrect type in conditional
89 conditional-type.c:29:21: got void
90 conditional-type.c:30:16: error: incorrect type in conditional
91 conditional-type.c:30:16: got struct state s
92 conditional-type.c:34:21: error: incorrect type in conditional
93 conditional-type.c:34:21: got void
94 conditional-type.c:36:20: error: incorrect type in conditional
95 conditional-type.c:36:20: got void
96 conditional-type.c:40:21: error: incorrect type in conditional
97 conditional-type.c:40:21: got void