Copyright year update in most files of the GDB Project.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / psmang1.cc
1 /* This test script is part of GDB, the GNU debugger.
2
3 Copyright 2002, 2004, 2012 Free Software Foundation, Inc.
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
7 the Free Software Foundation; either version 3 of the License, or
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.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /* Do not move this definition into a header file! See the comments
20 in psmang.exp. */
21 struct s
22 {
23 int value;
24 void method1 (void);
25 void method2 (void);
26 };
27
28 void
29 s::method1 ()
30 {
31 value = 42;
32 }
33
34 int
35 main (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. */
50 int ax;
51 int bx;
52 int a1x;
53 int b1x;
54 int a2x;
55 int b2x;
56 int a12x;
57 int b12x;
58 int a3x;
59 int b3x;
60 int a13x;
61 int b13x;
62 int a23x;
63 int b23x;
64 int a123x;
65 int b123x;
66 int a4x;
67 int b4x;
68 int a14x;
69 int b14x;
70 int a24x;
71 int b24x;
72 int a124x;
73 int b124x;
74 int a34x;
75 int b34x;
76 int a134x;
77 int b134x;
78 int a234x;
79 int b234x;
80 int a1234x;
81 int b1234x;
82 int a5x;
83 int b5x;
84 int a15x;
85 int b15x;
86 int a25x;
87 int b25x;
88 int a125x;
89 int b125x;
90 int a35x;
91 int b35x;
92 int a135x;
93 int b135x;
94 int a235x;
95 int b235x;
96 int a1235x;
97 int b1235x;
98 int a45x;
99 int b45x;
100 int a145x;
101 int b145x;
102 int a245x;
103 int b245x;
104 int a1245x;
105 int b1245x;
106 int a345x;
107 int b345x;
108 int a1345x;
109 int b1345x;
110 int a2345x;
111 int b2345x;
112 int a12345x;
113 int b12345x;
114 int a6x;
115 int b6x;
116 int a16x;
117 int b16x;
118 int a26x;
119 int b26x;
120 int a126x;
121 int b126x;
122 int a36x;
123 int b36x;
124 int a136x;
125 int b136x;
126 int a236x;
127 int b236x;
128 int a1236x;
129 int b1236x;
130 int a46x;
131 int b46x;
132 int a146x;
133 int b146x;
134 int a246x;
135 int b246x;
136 int a1246x;
137 int b1246x;
138 int a346x;
139 int b346x;
140 int a1346x;
141 int b1346x;
142 int a2346x;
143 int b2346x;
144 int a12346x;
145 int b12346x;
146 int a56x;
147 int b56x;
148 int a156x;
149 int b156x;
150 int a256x;
151 int b256x;
152 int a1256x;
153 int b1256x;
154 int a356x;
155 int b356x;
156 int a1356x;
157 int b1356x;
158 int a2356x;
159 int b2356x;
160 int a12356x;
161 int b12356x;
162 int a456x;
163 int b456x;
164 int a1456x;
165 int b1456x;
166 int a2456x;
167 int b2456x;
168 int a12456x;
169 int b12456x;
170 int a3456x;
171 int b3456x;
172 int a13456x;
173 int b13456x;
174 int a23456x;
175 int b23456x;
176 int a123456x;
177 int b123456x;
This page took 0.033519 seconds and 5 git commands to generate.