| OLD | NEW |
| 1 /* This test script is part of GDB, the GNU debugger. | 1 /* This test script is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright 1993-1994, 1997-1999, 2003-2004, 2012 Free Software | 3 Copyright 1993-1994, 1997-1999, 2003-2004, 2012 Free Software |
| 4 Foundation, Inc. | 4 Foundation, Inc. |
| 5 | 5 |
| 6 This program is free software; you can redistribute it and/or modify | 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 | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 9 (at your option) any later version. |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 D* ppd = ⅆ | 104 D* ppd = ⅆ |
| 105 AD* pAd = ⅆ | 105 AD* pAd = ⅆ |
| 106 | 106 |
| 107 A a; | 107 A a; |
| 108 B b; | 108 B b; |
| 109 C c; | 109 C c; |
| 110 D d; | 110 D d; |
| 111 E e; | 111 E e; |
| 112 V v; | 112 V v; |
| 113 VB vb; | 113 VB vb; |
| 114 VA va; |
| 114 | 115 |
| 115 | 116 |
| 116 A* pAa = &a; | 117 A* pAa = &a; |
| 117 A* pAe = &e; | 118 A* pAe = &e; |
| 118 | 119 |
| 119 B* pBe = &e; | 120 B* pBe = &e; |
| 120 | 121 |
| 121 D* pDd = &d; | 122 D* pDd = &d; |
| 122 D* pDe = &e; | 123 D* pDe = &e; |
| 123 | 124 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 TEST(pBe->vvb(), 411); | 177 TEST(pBe->vvb(), 411); |
| 177 TEST(pDe->vvb(), 411); | 178 TEST(pDe->vvb(), 411); |
| 178 | 179 |
| 179 TEST(pEe->vd(), 282); | 180 TEST(pEe->vd(), 282); |
| 180 TEST(pEe->fvb(), 311); | 181 TEST(pEe->fvb(), 311); |
| 181 | 182 |
| 182 TEST(pEe->D::vg(), 102); | 183 TEST(pEe->D::vg(), 102); |
| 183 printf("Did %d tests, of which %d failed.\n", all_count, failed_count); | 184 printf("Did %d tests, of which %d failed.\n", all_count, failed_count); |
| 184 } | 185 } |
| 185 #ifdef usestubs | |
| 186 extern "C" { | |
| 187 void set_debug_traps(); | |
| 188 void breakpoint(); | |
| 189 }; | |
| 190 #endif | |
| 191 | 186 |
| 192 int main() | 187 int main() |
| 193 { | 188 { |
| 194 #ifdef usestubs | |
| 195 set_debug_traps(); | |
| 196 breakpoint(); | |
| 197 #endif | |
| 198 init(); | 189 init(); |
| 199 | 190 |
| 200 e.w = 7; | 191 e.w = 7; |
| 201 e.vb = 11; | 192 e.vb = 11; |
| 202 | 193 |
| 203 test_calls(); | 194 test_calls(); |
| 204 return 0; | 195 return 0; |
| 205 | 196 |
| 206 } | 197 } |
| 207 | 198 |
| 208 int A::f() {return 1;} | 199 int A::f() {return 1;} |
| 209 int B::f() {return 2;} | 200 int B::f() {return 2;} |
| 210 void D::s() {} | 201 void D::s() {} |
| 211 int E::f() {return 20;} | 202 int E::f() {return 20;} |
| 212 int D::vg() {return 100+d;} | 203 int D::vg() {return 100+d;} |
| 213 int E::vg() {return 200+d;} | 204 int E::vg() {return 200+d;} |
| 214 int V::f() {return 600+w;} | 205 int V::f() {return 600+w;} |
| 215 int V::vv() {return 400+w;} | 206 int V::vv() {return 400+w;} |
| 216 int E::vv() {return 450+w;} | 207 int E::vv() {return 450+w;} |
| 217 int D::fd() {return 250+d;} | 208 int D::fd() {return 250+d;} |
| 218 int D::vd() {return 280+d;} | 209 int D::vd() {return 280+d;} |
| 219 int VB::fvb() {return 300+vb;} | 210 int VB::fvb() {return 300+vb;} |
| 220 int VB::vvb() {return 400+vb;} | 211 int VB::vvb() {return 400+vb;} |
| OLD | NEW |