1 /* PR41779: Wconversion cannot see through real*integer promotions. */
2 /* { dg-do compile } */
3 /* { dg-skip-if "doubles are floats" { "avr-*-*" } { "*" } { "" } } */
4 /* { dg-options "-std=c99 -Wconversion" { target c } } */
5 /* { dg-options "-Wconversion" { target c++ } } */
6 /* { dg-require-effective-target large_double } */
8 float f1(float x
, unsigned short y
)
13 float f2(float x
, short y
)
18 float f3(float x
, char y
)
23 float f4(float x
, unsigned char y
)
28 float f5(float x
, int y
)
30 return x
* y
; /* { dg-warning "conversion" } */
33 double c1(float x
, unsigned short y
, int z
)
38 double c2(float x
, short y
, int z
)
43 double c3(float x
, char y
, int z
)
48 double c4(float x
, unsigned char y
, int z
)
53 double c5(float x
, int y
, int z
)
55 return z
? x
+ x
: y
; /* { dg-warning "conversion" } */