2 /* { dg-do compile } */
3 /* { dg-options "-Wconversion -Wsign-conversion" } */
4 /* { dg-require-effective-target int32plus } */
6 typedef struct _my_struct_t
{
9 } my_struct_t
, *my_struct_p_t
;
12 my_func1(unsigned int sm
, unsigned int bi
, my_struct_p_t msp
)
14 msp
->small
= sm
; /* { dg-warning "conversion" } */
15 msp
->big
= bi
; /* { dg-warning "conversion" } */
19 my_func2(unsigned int sm
, unsigned int bi
, my_struct_p_t msp
)
22 msp
->big
= bi
& 0x7fffffffU
;
26 my_func3(unsigned int sm
)