Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/builtins-57.c @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do link } */ /* { dg-options "-std=c99 -ffinite-math-only -O" } */ #include "builtins-config.h" extern void link_error (void); extern double floor (double); extern double trunc (double); extern double fabs (double); void test (double x) { #ifdef HAVE_C99_RUNTIME if (floor (fabs (x)) != trunc (fabs (x))) link_error (); #endif if (__builtin_lfloor (fabs (x)) != (long)fabs (x)) link_error (); } int main (void) { return 0; }