1/* This test script is part of GDB, the GNU debugger.
2
3   Copyright 2002, 2004,
4   Free Software Foundation, Inc.
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 3 of the License, or
9   (at your option) any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19
20#include <stdio.h>
21
22/* Do not move this definition into a header file!  See the comments
23   in psmang.exp.  */
24struct s
25{
26  int value;
27  void method1 (void);
28  void method2 (void);
29};
30
31void
32s::method2 (void)
33{
34  printf ("%d\n", value);
35}
36
37
38/* The presence of these variables ensures there will be so many
39   symbols in psmang2.cc's symtab's global block that it will have a
40   non-trivial hash table.  When there are only a very few symbols,
41   the block only has one hash bucket, so even if we compute the hash
42   value for the wrong symbol name, we'll still find a symbol that
43   matches.  */
44int a;
45int b;
46int a1;
47int b1;
48int a2;
49int b2;
50int a12;
51int b12;
52int a3;
53int b3;
54int a13;
55int b13;
56int a23;
57int b23;
58int a123;
59int b123;
60int a4;
61int b4;
62int a14;
63int b14;
64int a24;
65int b24;
66int a124;
67int b124;
68int a34;
69int b34;
70int a134;
71int b134;
72int a234;
73int b234;
74int a1234;
75int b1234;
76int a5;
77int b5;
78int a15;
79int b15;
80int a25;
81int b25;
82int a125;
83int b125;
84int a35;
85int b35;
86int a135;
87int b135;
88int a235;
89int b235;
90int a1235;
91int b1235;
92int a45;
93int b45;
94int a145;
95int b145;
96int a245;
97int b245;
98int a1245;
99int b1245;
100int a345;
101int b345;
102int a1345;
103int b1345;
104int a2345;
105int b2345;
106int a12345;
107int b12345;
108int a6;
109int b6;
110int a16;
111int b16;
112int a26;
113int b26;
114int a126;
115int b126;
116int a36;
117int b36;
118int a136;
119int b136;
120int a236;
121int b236;
122int a1236;
123int b1236;
124int a46;
125int b46;
126int a146;
127int b146;
128int a246;
129int b246;
130int a1246;
131int b1246;
132int a346;
133int b346;
134int a1346;
135int b1346;
136int a2346;
137int b2346;
138int a12346;
139int b12346;
140int a56;
141int b56;
142int a156;
143int b156;
144int a256;
145int b256;
146int a1256;
147int b1256;
148int a356;
149int b356;
150int a1356;
151int b1356;
152int a2356;
153int b2356;
154int a12356;
155int b12356;
156int a456;
157int b456;
158int a1456;
159int b1456;
160int a2456;
161int b2456;
162int a12456;
163int b12456;
164int a3456;
165int b3456;
166int a13456;
167int b13456;
168int a23456;
169int b23456;
170int a123456;
171int b123456;
172