diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2012-05-31 19:12:01 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2012-05-31 20:33:14 +0200 |
commit | 78e851f94f67b56e9baa8a62d6266c6bf979ee9e (patch) | |
tree | 277a0bfc514fd1cea6fdd97a3fdadb86debdf1eb /src/test | |
parent | 5849bd472a3a7296f91b887884946218897ca11f (diff) |
Fix noinline definition so that it works for more compilers.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/bignum_tests.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/bignum_tests.cpp b/src/test/bignum_tests.cpp index ca17766d13..16e4449e94 100644 --- a/src/test/bignum_tests.cpp +++ b/src/test/bignum_tests.cpp @@ -2,6 +2,7 @@ #include <climits> #include "bignum.h" +#include "util.h" BOOST_AUTO_TEST_SUITE(bignum_tests) @@ -29,9 +30,7 @@ BOOST_AUTO_TEST_SUITE(bignum_tests) // Let's force this code not to be inlined, in order to actually // test a generic version of the function. This increases the chance // that -ftrapv will detect overflows. -void mysetint64(CBigNum& num, int64 n) __attribute__((noinline)); - -void mysetint64(CBigNum& num, int64 n) +NOINLINE void mysetint64(CBigNum& num, int64 n) { num.setint64(n); } |