aboutsummaryrefslogtreecommitdiff
path: root/third_party/gcc_demangler.c
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-20 23:27:59 -0700
committeralon@honor <none@none>2010-10-20 23:27:59 -0700
commitdb0bb3be253387c481774a393aae6f1034d1a990 (patch)
tree9b5de8a02e84d531091dcfbef9136471d4579100 /third_party/gcc_demangler.c
parent5f4f3fe49a065a7e5ccbc9116e8d966f37e3516a (diff)
dynamic stack allocation support; demangler test closer to passing
Diffstat (limited to 'third_party/gcc_demangler.c')
-rw-r--r--third_party/gcc_demangler.c8
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;
+}
+