blob: afa46b0465cd13762098e52828633b3a8ed1c376 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Ingo Molnar3b7646e2013-09-30 15:53:31 +02002#include <bfd.h>
3
Ingo Molnar1e3f30f2013-10-02 15:48:49 +02004extern int printf(const char *format, ...);
5
Ingo Molnar3b7646e2013-09-30 15:53:31 +02006int main(void)
7{
Ingo Molnar1e3f30f2013-10-02 15:48:49 +02008 char symbol[4096] = "FieldName__9ClassNameFd";
9 char *tmp;
10
11 tmp = bfd_demangle(0, symbol, 0);
12
13 printf("demangled symbol: {%s}\n", tmp);
14
Ingo Molnar3b7646e2013-09-30 15:53:31 +020015 return 0;
16}