summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/complex.c
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-08-05 00:59:23 +0000
committerMichael Chastain <mec@google.com>2004-08-05 00:59:23 +0000
commitcb9aaed5eed5265cd8b9930735c86b980c5f8b84 (patch)
tree7a1cb4ca0bf0779b30107532b8c70e04186e68ee /gdb/testsuite/gdb.base/complex.c
parent55944f3dc47e5e33f7093916d846ccba9984985e (diff)
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Include <stdlib.h>.
Diffstat (limited to 'gdb/testsuite/gdb.base/complex.c')
-rw-r--r--gdb/testsuite/gdb.base/complex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/complex.c b/gdb/testsuite/gdb.base/complex.c
index dc69f6d8cf..dabbdd6059 100644
--- a/gdb/testsuite/gdb.base/complex.c
+++ b/gdb/testsuite/gdb.base/complex.c
@@ -1,4 +1,4 @@
-/* Copyright 2002, 2003
+/* Copyright 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GDB.
@@ -21,6 +21,8 @@
/* Test taken from GCC. Verify that we can print a structure containing
a complex number. */
+#include <stdlib.h>
+
typedef __complex__ float cf;
struct x { char c; cf f; } __attribute__ ((__packed__));
struct unpacked_x { char c; cf f; };