| OLD | NEW |
| 1 /* This testcase is part of GDB, the GNU debugger. | 1 /* This testcase is part of GDB, the GNU debugger. |
| 2 | 2 |
| 3 Copyright 2010-2012 Free Software Foundation, Inc. | 3 Copyright 2010-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This program is free software; you can redistribute it and/or modify | 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 | 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 | 7 the Free Software Foundation; either version 3 of the License, or |
| 8 (at your option) any later version. | 8 (at your option) any later version. |
| 9 | 9 |
| 10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 i = arg; | 28 i = arg; |
| 29 } | 29 } |
| 30 | 30 |
| 31 int valueofi (void) | 31 int valueofi (void) |
| 32 { | 32 { |
| 33 return i; /* Break in class. */ | 33 return i; /* Break in class. */ |
| 34 } | 34 } |
| 35 }; | 35 }; |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 int qq = 72; /* line of qq */ |
| 39 |
| 38 int func (int arg) | 40 int func (int arg) |
| 39 { | 41 { |
| 40 int i = 2; | 42 int i = 2; |
| 41 i = i * arg; | 43 i = i * arg; /* Block break here. */ |
| 42 return arg; /* Block break here. */ | 44 return arg; |
| 43 } | 45 } |
| 44 | 46 |
| 47 struct simple_struct |
| 48 { |
| 49 int a; |
| 50 }; |
| 51 |
| 45 int main (int argc, char *argv[]) | 52 int main (int argc, char *argv[]) |
| 46 { | 53 { |
| 47 #ifdef __cplusplus | 54 #ifdef __cplusplus |
| 48 SimpleClass sclass; | 55 SimpleClass sclass; |
| 49 #endif | 56 #endif |
| 50 int a = 0; | 57 int a = 0; |
| 51 int result; | 58 int result; |
| 59 struct simple_struct ss = { 10 }; |
| 52 enum tag {one, two, three}; | 60 enum tag {one, two, three}; |
| 53 enum tag t = one; | 61 enum tag t = one; |
| 54 | 62 |
| 55 result = func (42); | 63 result = func (42); |
| 56 | 64 |
| 57 #ifdef __cplusplus | 65 #ifdef __cplusplus |
| 58 sclass.seti (42); | 66 sclass.seti (42); |
| 59 sclass.valueofi (); | 67 sclass.valueofi (); |
| 60 #endif | 68 #endif |
| 61 return 0; /* Break at end. */ | 69 return 0; /* Break at end. */ |
| 62 } | 70 } |
| OLD | NEW |