summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/nextafter-2.c
blob: e51ae94be0c27d9d025efba81ebb057d0ad54baa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR libstdc++/85466 */
/* { dg-do run } */
/* { dg-require-effective-target c99_runtime } */
/* { dg-options "-O2 -fno-builtin" } */
/* { dg-add-options ieee } */

#include <stdlib.h>

#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
# if !__GLIBC_PREREQ (2, 24)
/* Workaround buggy nextafterl in glibc 2.23 and earlier,
   see https://sourceware.org/bugzilla/show_bug.cgi?id=20205  */
#  define NO_LONG_DOUBLE 1
# endif
#endif
#include "nextafter-1.c"