URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [builtins/] [abs-1.c] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for -fno-builtin-FUNCTION. */ /* Origin: Joseph Myers <jsm28@cam.ac.uk>. */ /* GCC normally handles abs and labs as built-in functions even without optimization. So test that with -fno-builtin-abs, labs is so handled but abs isn't. */ int abs_called = 0; extern int abs (int); extern long labs (long); extern void abort (void); void main_test (void) { if (labs (0) != 0) abort (); if (abs (0) != 0) abort (); if (!abs_called) abort (); }
Go to most recent revision | Compare with Previous | Blame | View Log