repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git]
/
tools
/
build
/
feature
/
test-cxa-demangle.cpp
blob
a3e712f65c37dc3d8bb785ac45c54b9e640033b5
1
// SPDX-License-Identifier: GPL-2.0
2
#include <stdio.h>
3
#include <stdlib.h>
4
#include <cxxabi.h>
5
6
int
main
(
void
)
7
{
8
size_t
len
=
256
;
9
char
*
output
= (
char
*)
malloc
(
len
);
10
int
status
;
11
12
output
=
abi
::
__cxa_demangle
(
"FieldName__9ClassNameFd"
,
output
, &
len
, &
status
);
13
14
printf
(
"demangled symbol: {%s}
\n
"
,
output
);
15
16
return
0
;
17
}