diff options
Diffstat (limited to 'third_party/gcc_demangler.c')
-rw-r--r-- | third_party/gcc_demangler.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/gcc_demangler.c b/third_party/gcc_demangler.c index 6cfbb19e..69de5e76 100644 --- a/third_party/gcc_demangler.c +++ b/third_party/gcc_demangler.c @@ -1,5 +1,6 @@ #include <string.h> #include <stdlib.h> +#define IN_LIBGCC2 /* Demangler for g++ V3 ABI. Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. @@ -4216,3 +4217,10 @@ is_gnu_v3_mangled_dtor (const char *name) #endif /* IN_GLIBCPP_V3 */ +int main() +{ + int status; + printf("*%s*\n", __cxa_demangle("_ZL10d_demanglePKciPj", 0, 0, &status)); + return 1; +} + |