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