projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
structs.c
diff --git
a/gdb/testsuite/gdb.base/structs.c
b/gdb/testsuite/gdb.base/structs.c
index 0cbe79633a974de439ce4932a4975802551d9075..c26b86ccda790431fd4d6c77ef0df77fb9415d6f 100644
(file)
--- a/
gdb/testsuite/gdb.base/structs.c
+++ b/
gdb/testsuite/gdb.base/structs.c
@@
-1,6
+1,7
@@
/* This testcase is part of GDB, the GNU debugger.
/* This testcase is part of GDB, the GNU debugger.
- Copyright 1996, 1999, 2003, 2007 Free Software Foundation, Inc.
+ Copyright 1996, 1999, 2003, 2007, 2008, 2009, 2010, 2011
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-13,10
+14,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- Please email any bugs, comments, and/or additions to this file to:
- bug-gdb@prep.ai.mit.edu */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Useful abreviations. */
typedef void t;
/* Useful abreviations. */
typedef void t;
@@
-399,6
+397,8
@@
zed ()
L18.r = 'Z';
}
L18.r = 'Z';
}
+static struct { char c; } chartest[256];
+
int main()
{
#ifdef usestubs
int main()
{
#ifdef usestubs
@@
-407,6
+407,10
@@
int main()
#endif
int i;
#endif
int i;
+ for (i = 0; i < 256; i++)
+ chartest[i].c = i;
+ chartest[0].c = 0; /* chartest-done */
+
Fun1(foo1);
Fun2(foo2);
Fun3(foo3);
Fun1(foo1);
Fun2(foo2);
Fun3(foo3);
@@
-429,7
+433,7
@@
int main()
/* An infinite loop that first clears all the variables and then
calls each function. This "hack" is to make testing random
functions easier - "advance funN" is guaranteed to have always
/* An infinite loop that first clears all the variables and then
calls each function. This "hack" is to make testing random
functions easier - "advance funN" is guaranteed to have always
- been prece
e
ded by a global variable clearing zed call. */
+ been preceded by a global variable clearing zed call. */
while (1)
{
while (1)
{
This page took
0.024642 seconds
and
4
git commands to generate.