/* 20020720-1.c from the execute part of the gcc torture suite. */ #include #ifdef __SDCC #pragma std_c99 #endif #if 0 // TODO: Enable when fabs is supported! /* Copyright (C) 2002 Free Software Foundation. Ensure that fabs(x) < 0.0 optimization is working. Written by Roger Sayle, 20th July 2002. */ extern double fabs (double); extern void link_error (void); void foo (double x) { double p, q; p = fabs (x); q = 0.0; if (p < q) link_error (); } #endif void testTortureExecute (void) { #if 0 foo (1.0); return; #endif } void link_error () { ASSERT (0); }