Commit | Line | Data |
---|---|---|
b811d2c2 | 1 | /* Copyright 2019-2020 Free Software Foundation, Inc. |
7dc42066 AB |
2 | |
3 | This file is part of GDB. | |
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 | static int global_i1; | |
19 | static float global_f1; | |
20 | int global_i2; | |
21 | int global_f2; | |
22 | ||
23 | typedef int another_int_t; | |
24 | typedef float another_float_t; | |
25 | ||
26 | static another_float_t | |
27 | f1 (int arg) | |
28 | { | |
29 | return (float) arg; | |
30 | } | |
31 | ||
32 | float | |
33 | f2 (another_float_t arg) | |
34 | { | |
35 | return arg + f1 (1); | |
36 | } | |
37 | ||
38 | int | |
39 | f3 (another_int_t arg) | |
40 | { | |
41 | return arg + 2; | |
42 | } | |
43 | ||
49ba92c0 TV |
44 | typedef char another_char_t; |
45 | typedef short another_short_t; | |
46 | ||
47 | static another_char_t var1; | |
48 | static another_short_t var2; |