| 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 1993-1995, 1998-2001, 2004, 2007-2012 Free Software | 3 Copyright 1993-2013 Free Software Foundation, Inc. |
| 4 Foundation, Inc. | |
| 5 | 4 |
| 6 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 |
| 7 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 |
| 8 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
| 9 (at your option) any later version. | 8 (at your option) any later version. |
| 10 | 9 |
| 11 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, |
| 12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 GNU General Public License for more details. | 13 GNU General Public License for more details. |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 { | 645 { |
| 647 static int twentythree = 23; | 646 static int twentythree = 23; |
| 648 return &twentythree; | 647 return &twentythree; |
| 649 } | 648 } |
| 650 | 649 |
| 651 /* Gotta have a main to be able to generate a linked, runnable | 650 /* Gotta have a main to be able to generate a linked, runnable |
| 652 executable, and also provide a useful place to set a breakpoint. */ | 651 executable, and also provide a useful place to set a breakpoint. */ |
| 653 | 652 |
| 654 int main () | 653 int main () |
| 655 { | 654 { |
| 656 malloc(1); | 655 void *p = malloc (1); |
| 657 t_double_values(double_val1, double_val2); | 656 t_double_values(double_val1, double_val2); |
| 658 t_structs_c(struct_val1); | 657 t_structs_c(struct_val1); |
| 658 free (p); |
| 659 return 0 ; | 659 return 0 ; |
| 660 } | 660 } |
| 661 | 661 |
| 662 static int | 662 static int |
| 663 Lcallfunc (int arg) | 663 Lcallfunc (int arg) |
| 664 { | 664 { |
| 665 return arg + 1; | 665 return arg + 1; |
| 666 } | 666 } |
| 667 | 667 |
| 668 int | 668 int |
| 669 callfunc (int (*func) (int value), int value) | 669 callfunc (int (*func) (int value), int value) |
| 670 { | 670 { |
| 671 return Lcallfunc (0) * 0 + func (value) * 2; | 671 return Lcallfunc (0) * 0 + func (value) * 2; |
| 672 } | 672 } |
| OLD | NEW |