aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-03-07 16:05:22 +0000
committerDJ Delorie <dj@redhat.com>2004-03-07 16:05:22 +0000
commit758d77bec11a769b8c2193934c5b0d94c857650a (patch)
tree4dc12aa2c936863b60222c43d8e7638f78e77df3 /libiberty/testsuite
parent84c84759cbbd85081ccecf0dda5914c49cbe89bd (diff)
downloadgdb-758d77bec11a769b8c2193934c5b0d94c857650a.zip
gdb-758d77bec11a769b8c2193934c5b0d94c857650a.tar.gz
gdb-758d77bec11a769b8c2193934c5b0d94c857650a.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/test-demangle.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c
index 6e00d14..4d515fa 100644
--- a/libiberty/testsuite/test-demangle.c
+++ b/libiberty/testsuite/test-demangle.c
@@ -26,6 +26,12 @@
#include <stdio.h>
#include "libiberty.h"
#include "demangle.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
struct line
{
@@ -119,7 +125,7 @@ main(argc, argv)
int argc;
char **argv;
{
- enum demangling_styles style;
+ enum demangling_styles style = auto_demangling;
int no_params;
int is_v3_ctor;
int is_v3_dtor;