mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
1e3f30fae7
Prepare to include them into test-all.c directly, by making sure that they build cleanly and without warnings. Also make sure they make a certain amount of sense and don't crash when executed. Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Namhyung Kim <namhyung@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/n/tip-Mn9gsdutzopoowk3xurqpsxE@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
16 lines
263 B
C
16 lines
263 B
C
extern int printf(const char *format, ...);
|
|
extern char *cplus_demangle(const char *, int);
|
|
|
|
int main(void)
|
|
{
|
|
char symbol[4096] = "FieldName__9ClassNameFd";
|
|
char *tmp;
|
|
|
|
tmp = cplus_demangle(symbol, 0);
|
|
|
|
printf("demangled symbol: {%s}\n", tmp);
|
|
|
|
return 0;
|
|
}
|
|
|