* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-inf-1.c
blobca235adeec085f5149df8495e943ec2e46c261f6
1 /* { dg-do compile } */
3 float fi = __builtin_inff();
4 double di = __builtin_inf();
5 long double li = __builtin_infl();
7 float fh = __builtin_huge_valf();
8 double dh = __builtin_huge_val();
9 long double lh = __builtin_huge_vall();
11 /* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 3 } */
12 /* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 4 } */
13 /* { dg-warning "does not support infinity" "INF unsupported" { target vax-*-* i370-*-* c4x-*-* } 5 } */