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