summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 14:25:51 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 14:25:51 +0000
commitdaf4fdb01c47200a78d1026eb9443f30d2ffa26f (patch)
tree415d0a6924fae61120dc36f4353dfabeb04bab08 /libiberty
parent66ddfa8b13efd0615459843acf4feff9f70aab6d (diff)
downloadgcc-daf4fdb01c47200a78d1026eb9443f30d2ffa26f.tar.gz
* testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
prototypes. (main): Initialize style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79062 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog6
-rw-r--r--libiberty/testsuite/test-demangle.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index b9d6e73f89e..ff78db566fd 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-07 Andreas Jaeger <aj@suse.de>
+
+ * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
+ prototypes.
+ (main): Initialize style.
+
2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
* cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c
index 6e00d1416d7..4d515fab534 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;