1 typedef unsigned short u16
;
2 typedef unsigned int u32
;
16 void union_to_int(u16 val
);
17 void struct_to_int(u16 val
);
20 void union_to_int(u16 val
)
28 void struct_to_int(u16 val
)
37 * check-name: cast-bad 00
40 cast-bad-00.c:25:18: warning: incorrect type in argument 2 (different base types)
41 cast-bad-00.c:25:18: expected unsigned int [usertype]
42 cast-bad-00.c:25:18: got union u [assigned] u
43 cast-bad-00.c:33:18: warning: incorrect type in argument 2 (different base types)
44 cast-bad-00.c:33:18: expected unsigned int [usertype]
45 cast-bad-00.c:33:18: got struct s [assigned] s