1 /* Copyright 2019-2021 Free Software Foundation, Inc.
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 __attribute__ ((used)) 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
f1(int arg)27 f1 (int arg)
28 {
29   return (float) arg;
30 }
31 
32 float
f2(another_float_t arg)33 f2 (another_float_t arg)
34 {
35   return arg + f1 (1);
36 }
37 
38 int
f3(another_int_t arg)39 f3 (another_int_t arg)
40 {
41   return arg + 2;
42 }
43 
44 typedef char another_char_t;
45 typedef short another_short_t;
46 
47 static another_char_t __attribute__ ((used)) var1;
48 static another_short_t __attribute__ ((used)) var2;
49