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 committed 2014-12-01 08:20:55 +01:00
1 parent dd309b1054
commit 80d99aa20c
2 files changed
+195 -81

No files matched your search

+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;
File diff suppressed because it is too large. Load diff