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