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