1 /* Copyright 1996, 1999 Free Software Foundation, Inc.
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2 of the License, or
6 (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 Please email any bugs, comments, and/or additions to this file to:
18 bug-gdb@prep.ai.mit.edu */
20 struct struct1 { char a;};
21 struct struct2 { char a, b;};
22 struct struct3 { char a, b, c; };
23 struct struct4 { char a, b, c, d; };
24 struct struct5 { char a, b, c, d, e; };
25 struct struct6 { char a, b, c, d, e, f; };
26 struct struct7 { char a, b, c, d, e, f, g; };
27 struct struct8 { char a, b, c, d, e, f, g, h; };
28 struct struct9 { char a, b, c, d, e, f, g, h, i; };
29 struct struct10 { char a, b, c, d, e, f, g, h, i, j; };
30 struct struct11 { char a, b, c, d, e, f, g, h, i, j, k; };
31 struct struct12 { char a, b, c, d, e, f, g, h, i, j, k, l; };
32 struct struct16 { char a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p; };
34 struct struct1 foo1 = {'1'}, L1;
35 struct struct2 foo2 = { 'a', 'b'}, L2;
36 struct struct3 foo3 = { 'A', 'B', 'C'}, L3;
37 struct struct4 foo4 = {'1', '2', '3', '4'}, L4;
38 struct struct5 foo5 = {'a', 'b', 'c', 'd', 'e'}, L5;
39 struct struct6 foo6 = {'A', 'B', 'C', 'D', 'E', 'F'}, L6;
40 struct struct7 foo7 = {'1', '2', '3', '4', '5', '6', '7'}, L7;
41 struct struct8 foo8 = {'1', '2', '3', '4', '5', '6', '7', '8'}, L8;
42 struct struct9 foo9 = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'}, L9;
43 struct struct10 foo10 = {
44 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'}, L10;
45 struct struct11 foo11 = {
46 '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B'}, L11;
47 struct struct12 foo12 = {
48 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'}, L12;
49 struct struct16 foo16 = {
50 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p'}, L16;
88 struct struct10 fun10()
92 struct struct11 fun11()
96 struct struct12 fun12()
100 struct struct16 fun16()
106 void Fun1(struct struct1 foo1)
115 void Fun2(struct struct2 foo2)
124 void Fun3(struct struct3 foo3)
133 void Fun4(struct struct4 foo4)
142 void Fun5(struct struct5 foo5)
151 void Fun6(struct struct6 foo6)
160 void Fun7(struct struct7 foo7)
169 void Fun8(struct struct8 foo8)
178 void Fun9(struct struct9 foo9)
187 void Fun10(struct struct10 foo10)
190 struct struct10 foo10;
196 void Fun11(struct struct11 foo11)
199 struct struct11 foo11;
205 void Fun12(struct struct12 foo12)
208 struct struct12 foo12;
214 void Fun16(struct struct16 foo16)
217 struct struct16 foo16;
230 /* TEST C FUNCTIONS */
245 foo1.a = foo2.a = foo3.a = foo4.a = foo5.a = foo6.a = foo7.a = foo8.a =
246 foo9.a = foo10.a = foo11.a = foo12.a = foo16.a = '$';