mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00
18 lines
353 B
C++
18 lines
353 B
C++
![]() |
// SPDX-License-Identifier: GPL-2.0
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <cxxabi.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
size_t len = 256;
|
||
|
char *output = (char*)malloc(len);
|
||
|
int status;
|
||
|
|
||
|
output = abi::__cxa_demangle("FieldName__9ClassNameFd", output, &len, &status);
|
||
|
|
||
|
printf("demangled symbol: {%s}\n", output);
|
||
|
|
||
|
return 0;
|
||
|
}
|