2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-true_min-1.c
blobf666c727442faa4c63bcf9f26c4f72de66aa52bb
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;