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