]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/build/feature/test-libbfd.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
[mirror_ubuntu-bionic-kernel.git] / tools / build / feature / test-libbfd.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
3b7646e4
IM
2#include <bfd.h>
3
1e3f30fa
IM
4extern int printf(const char *format, ...);
5
3b7646e4
IM
6int main(void)
7{
1e3f30fa
IM
8 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
3b7646e4
IM
15 return 0;
16}