]>
Commit | Line | Data |
---|---|---|
28d41a99 MS |
1 | /* This testcase is part of GDB, the GNU debugger. |
2 | ||
618f726f | 3 | Copyright 1992-2016 Free Software Foundation, Inc. |
28d41a99 MS |
4 | |
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 | |
7 | the Free Software Foundation; either version 3 of the License, or | |
8 | (at your option) any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
17 | ||
18 | /* The code for this file was extracted from the gdb testsuite | |
19 | testcase "break.c". */ | |
20 | ||
21 | /* The following functions do nothing useful. They are included | |
22 | simply as places to try setting breakpoints at. They are | |
23 | explicitly "one-line functions" to verify that this case works | |
24 | (some versions of gcc have or have had problems with this). | |
25 | ||
26 | These functions are in a separate source file to prevent an | |
27 | optimizing compiler from inlining them and optimizing them away. */ | |
28 | ||
28d41a99 MS |
29 | int marker1 (void) { return (0); } /* set breakpoint 15 here */ |
30 | int marker2 (int a) { return (1); } /* set breakpoint 8 here */ | |
31 | void marker3 (char *a, char *b) {} /* set breakpoint 17 here */ | |
32 | void marker4 (long d) {} /* set breakpoint 14 here */ | |
28d41a99 MS |
33 | |
34 | /* A structure we use for field name completion tests. */ | |
35 | struct some_struct | |
36 | { | |
37 | int a_field; | |
38 | int b_field; | |
39 | }; | |
40 | ||
41 | struct some_struct values[50]; |