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