Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-true_min-1.c
blobfa83c17fe52ed82ba279b1f0201725f1f00565c8
1 /* { dg-do run } */
2 /* { dg-options "-std=c11" } */
3 /* { dg-xfail-run-if "PR58757 -mieee is required to compare denormals" { alpha*-*-* } { "*" } { "" } } */
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. */
9 #include <float.h>
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;