This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / psmang1.cc
CommitLineData
1e3aeb41
MC
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 2 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, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
f0708dbb
JB
21/* Do not move this definition into a header file! See the comments
22 in psmang.exp. */
23struct s
24{
25 int value;
26 void method1 (void);
27 void method2 (void);
28};
29
30void
31s::method1 ()
32{
33 value = 42;
34}
35
36int
37main (int argc, char **argv)
38{
39 s si;
40
41 si.method1 ();
42 si.method2 ();
43}
44
45
46/* The presence of these variables ensures there will be so many
47 symbols in psmang1.cc's symtab's global block that it will have a
48 non-trivial hash table. When there are only a very few symbols,
49 the block only has one hash bucket, so even if we compute the hash
50 value for the wrong symbol name, we'll still find a symbol that
51 matches. */
52int ax;
53int bx;
54int a1x;
55int b1x;
56int a2x;
57int b2x;
58int a12x;
59int b12x;
60int a3x;
61int b3x;
62int a13x;
63int b13x;
64int a23x;
65int b23x;
66int a123x;
67int b123x;
68int a4x;
69int b4x;
70int a14x;
71int b14x;
72int a24x;
73int b24x;
74int a124x;
75int b124x;
76int a34x;
77int b34x;
78int a134x;
79int b134x;
80int a234x;
81int b234x;
82int a1234x;
83int b1234x;
84int a5x;
85int b5x;
86int a15x;
87int b15x;
88int a25x;
89int b25x;
90int a125x;
91int b125x;
92int a35x;
93int b35x;
94int a135x;
95int b135x;
96int a235x;
97int b235x;
98int a1235x;
99int b1235x;
100int a45x;
101int b45x;
102int a145x;
103int b145x;
104int a245x;
105int b245x;
106int a1245x;
107int b1245x;
108int a345x;
109int b345x;
110int a1345x;
111int b1345x;
112int a2345x;
113int b2345x;
114int a12345x;
115int b12345x;
116int a6x;
117int b6x;
118int a16x;
119int b16x;
120int a26x;
121int b26x;
122int a126x;
123int b126x;
124int a36x;
125int b36x;
126int a136x;
127int b136x;
128int a236x;
129int b236x;
130int a1236x;
131int b1236x;
132int a46x;
133int b46x;
134int a146x;
135int b146x;
136int a246x;
137int b246x;
138int a1246x;
139int b1246x;
140int a346x;
141int b346x;
142int a1346x;
143int b1346x;
144int a2346x;
145int b2346x;
146int a12346x;
147int b12346x;
148int a56x;
149int b56x;
150int a156x;
151int b156x;
152int a256x;
153int b256x;
154int a1256x;
155int b1256x;
156int a356x;
157int b356x;
158int a1356x;
159int b1356x;
160int a2356x;
161int b2356x;
162int a12356x;
163int b12356x;
164int a456x;
165int b456x;
166int a1456x;
167int b1456x;
168int a2456x;
169int b2456x;
170int a12456x;
171int b12456x;
172int a3456x;
173int b3456x;
174int a13456x;
175int b13456x;
176int a23456x;
177int b23456x;
178int a123456x;
179int b123456x;
This page took 0.353122 seconds and 4 git commands to generate.