diff options
| author | Mark Wielaard <[email protected]> | 2014-05-18 22:41:19 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-05-18 22:45:45 +0200 |
| commit | 85482fc073442a056e0e3663eb454fa76d883271 (patch) | |
| tree | 5e662e12f147410e8b46cd83dd415f022f8381fb /tests/testfile-backtrace-demangle.cc | |
| parent | f05dff9d390f0692f5c74f9551ce6b2eeda78ed4 (diff) | |
tests: Don't use static functions in testfile-backtrace-demangle.
Compilers and demanglers might treat local/static functions different
between versions. In particular g++ 4.1.2 and libstdc++ mangle and
demangle the static void cxxfunc (int i) function as _Z7cxxfunci.
While g++ 4.8.2 and libstdc++ mangle and demangle it as _ZL7cxxfunci.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/testfile-backtrace-demangle.cc')
| -rw-r--r-- | tests/testfile-backtrace-demangle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testfile-backtrace-demangle.cc b/tests/testfile-backtrace-demangle.cc index 6daa4297..27fff685 100644 --- a/tests/testfile-backtrace-demangle.cc +++ b/tests/testfile-backtrace-demangle.cc @@ -21,7 +21,7 @@ #define NOINLINE_NOCLONE __attribute__ ((noinline)) #endif -static void NOINLINE_NOCLONE +void NOINLINE_NOCLONE cxxfunc (int i) { *(volatile int *)0=0; @@ -31,7 +31,7 @@ cxxfunc (int i) extern "C" { - static void NOINLINE_NOCLONE + void NOINLINE_NOCLONE f (void) { cxxfunc(1); |
