strace/tests/stack-fcall.h
Dmitry V. Levin 51a8225407 tests: check strace -k symbol names demangling
* tests/strace-k-demangle.test: New test.
* tests/stack-fcall-mangled.c: New file.
* tests/stack-fcall-mangled-0.c: Likewise.
* tests/stack-fcall-mangled-1.c: Likewise.
* tests/stack-fcall-mangled-2.c: Likewise.
* tests/stack-fcall-mangled-3.c: Likewise.
* tests/stack-fcall.h [MANGLE] (f0, f1, f2, f3): New macros.
* tests/.gitignore: Add stack-fcall-mangled.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(stack_fcall_mangled_SOURCES): New variable.
(EXTRA_DIST): Add strace-k-demangle.test.
[USE_LIBUNWIND && USE_DEMANGLE] (LIBUNWIND_TESTS): Likewise.
2017-12-29 15:20:21 +00:00

14 lines
176 B
C

#ifdef MANGLE
#define f0 _ZN2ns2f0Ei
#define f1 _ZN2ns2f1Ei
#define f2 _ZN2ns2f2Ei
#define f3 _ZN2ns2f3Ei
#endif
int f0(int i);
int f1(int i);
int f2(int i);
int f3(int i);