]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.cp/psmang2.cc
* configure.ac: Switch license to GPLv3.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.cp / psmang2.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#include <stdio.h>
22
23/* Do not move this definition into a header file! See the comments
24 in psmang.exp. */
25struct s
26{
27 int value;
28 void method1 (void);
29 void method2 (void);
30};
31
32void
33s::method2 (void)
34{
35 printf ("%d\n", value);
36}
37
38
39/* The presence of these variables ensures there will be so many
40 symbols in psmang2.cc's symtab's global block that it will have a
41 non-trivial hash table. When there are only a very few symbols,
42 the block only has one hash bucket, so even if we compute the hash
43 value for the wrong symbol name, we'll still find a symbol that
44 matches. */
45int a;
46int b;
47int a1;
48int b1;
49int a2;
50int b2;
51int a12;
52int b12;
53int a3;
54int b3;
55int a13;
56int b13;
57int a23;
58int b23;
59int a123;
60int b123;
61int a4;
62int b4;
63int a14;
64int b14;
65int a24;
66int b24;
67int a124;
68int b124;
69int a34;
70int b34;
71int a134;
72int b134;
73int a234;
74int b234;
75int a1234;
76int b1234;
77int a5;
78int b5;
79int a15;
80int b15;
81int a25;
82int b25;
83int a125;
84int b125;
85int a35;
86int b35;
87int a135;
88int b135;
89int a235;
90int b235;
91int a1235;
92int b1235;
93int a45;
94int b45;
95int a145;
96int b145;
97int a245;
98int b245;
99int a1245;
100int b1245;
101int a345;
102int b345;
103int a1345;
104int b1345;
105int a2345;
106int b2345;
107int a12345;
108int b12345;
109int a6;
110int b6;
111int a16;
112int b16;
113int a26;
114int b26;
115int a126;
116int b126;
117int a36;
118int b36;
119int a136;
120int b136;
121int a236;
122int b236;
123int a1236;
124int b1236;
125int a46;
126int b46;
127int a146;
128int b146;
129int a246;
130int b246;
131int a1246;
132int b1246;
133int a346;
134int b346;
135int a1346;
136int b1346;
137int a2346;
138int b2346;
139int a12346;
140int b12346;
141int a56;
142int b56;
143int a156;
144int b156;
145int a256;
146int b256;
147int a1256;
148int b1256;
149int a356;
150int b356;
151int a1356;
152int b1356;
153int a2356;
154int b2356;
155int a12356;
156int b12356;
157int a456;
158int b456;
159int a1456;
160int b1456;
161int a2456;
162int b2456;
163int a12456;
164int b12456;
165int a3456;
166int b3456;
167int a13456;
168int b13456;
169int a23456;
170int b23456;
171int a123456;
172int b123456;