X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.base%2Fstructs.c;h=c26b86ccda790431fd4d6c77ef0df77fb9415d6f;hb=177b42fefa0b72f2ca50ddf7393c0f2465546ff4;hp=0cbe79633a974de439ce4932a4975802551d9075;hpb=a9762ec78a53fbe9209fe1654db42df0cd328d50;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.base/structs.c b/gdb/testsuite/gdb.base/structs.c index 0cbe79633a..c26b86ccda 100644 --- 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. - 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 @@ -13,10 +14,7 @@ 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 . - - 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 . */ /* Useful abreviations. */ typedef void t; @@ -399,6 +397,8 @@ zed () L18.r = 'Z'; } +static struct { char c; } chartest[256]; + int main() { #ifdef usestubs @@ -407,6 +407,10 @@ int main() #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); @@ -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 - been preceeded by a global variable clearing zed call. */ + been preceded by a global variable clearing zed call. */ while (1) {