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