blob: 24059907e990da208af957549b662e29f13695b9 [file] [log] [blame]
Ingo Molnar3b7646e2013-09-30 15:53:31 +02001#include <bfd.h>
2
Ingo Molnar1e3f30f2013-10-02 15:48:49 +02003extern int printf(const char *format, ...);
4
Ingo Molnar3b7646e2013-09-30 15:53:31 +02005int main(void)
6{
Ingo Molnar1e3f30f2013-10-02 15:48:49 +02007 char symbol[4096] = "FieldName__9ClassNameFd";
8 char *tmp;
9
10 tmp = bfd_demangle(0, symbol, 0);
11
12 printf("demangled symbol: {%s}\n", tmp);
13
Ingo Molnar3b7646e2013-09-30 15:53:31 +020014 return 0;
15}