1 /* { dg-do run } */
2 /* { dg-options "-std=c11" } */
3 /* { dg-xfail-run-if "PR58757 -mieee is required to compare denormals" { alpha*-*-* } } */
4
5 /* Test that the smallest positive value is not 0. This needs to be true
6 even when denormals are not supported, so we do not pass any flag
7 like -mieee. */
8
9 #include <float.h>
10
main()11 int main(){
12 volatile float f = FLT_TRUE_MIN;
13 volatile double d = DBL_TRUE_MIN;
14 volatile long double l = LDBL_TRUE_MIN;
15 if (f == 0 || d == 0 || l == 0)
16 __builtin_abort ();
17 return 0;
18 }
19