2004-08-04 Michael Chastain <mec.gnu@mindspring.com>

* gdb.base/complex.c: Include <stdlib.h>.
This commit is contained in:
Michael Chastain 2004-08-05 00:59:23 +00:00
parent 55944f3dc4
commit cb9aaed5ee
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Include <stdlib.h>.
2004-08-04 Michael Chastain <mec.gnu@mindspring.com>
* gdb.base/complex.c: Add copyright notice.

View File

@ -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; };