libtests/complex,math: Prevent optimizations

For constant arguments GCC calculates the values of the math library
functions at compile-time.

close #1741
This commit is contained in:
Sebastian Huber
2014-12-01 08:20:55 +01:00
parent dd309b1054
commit 80d99aa20c
2 changed files with 195 additions and 81 deletions
+3 -1
View File
@@ -25,11 +25,13 @@
extern void FUNC(docomplex) (void);
volatile complex FTYPE ca, cb;
void
FUNC(docomplex) (void)
{
#ifndef PROVIDE_EMPTY_FUNC
complex FTYPE ca, cb, cc;
complex FTYPE cc;
FTYPE f1;
ca = 1.0 + 1.0 * I;