]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.mi/mi-sym-info-2.c
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-sym-info-2.c
CommitLineData
3666a048 1/* Copyright 2019-2021 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
18static int global_i1;
71e1b6b0 19static float __attribute__ ((used)) global_f1;
7dc42066
AB
20int global_i2;
21int global_f2;
22
23typedef int another_int_t;
24typedef float another_float_t;
25
26static another_float_t
27f1 (int arg)
28{
29 return (float) arg;
30}
31
32float
33f2 (another_float_t arg)
34{
35 return arg + f1 (1);
36}
37
38int
39f3 (another_int_t arg)
40{
41 return arg + 2;
42}
43
49ba92c0
TV
44typedef char another_char_t;
45typedef short another_short_t;
46
71e1b6b0
GB
47static another_char_t __attribute__ ((used)) var1;
48static another_short_t __attribute__ ((used)) var2;