PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-inf-1.c
blob1e00bdc07614c297bfc0d90aa7201f90971ad8ea
1 /* { dg-do compile } */
3 float fi = __builtin_inff();
4 /* { dg-error "does not support infinity" "INF unsupported" { target vax-*-* spu-*-* } .-1 } */
5 double di = __builtin_inf();
6 /* { dg-error "does not support infinity" "INF unsupported" { target vax-*-* } .-1 } */
7 long double li = __builtin_infl();
8 /* { dg-error "does not support infinity" "INF unsupported" { target vax-*-* } .-1 } */
10 float fh = __builtin_huge_valf();
11 double dh = __builtin_huge_val();
12 long double lh = __builtin_huge_vall();