1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright 2017-2020 Free Software Foundation, Inc.
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.
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.
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/>. */
18 #define ABI1 __attribute__ ((abi_tag ("tag1")))
19 #define ABI2 __attribute__ ((abi_tag ("tag2")))
20 #define ABI3 __attribute__ ((abi_tag ("tag3")))
23 test_abi_tag_function (int)
28 test_abi_tag_ovld_function ()
33 test_abi_tag_ovld_function (int)
37 /* Code for the overload functions, different ABI tag test. */
40 test_abi_tag_ovld2_function ()
45 test_abi_tag_ovld2_function (short)
50 test_abi_tag_ovld2_function (int)
55 test_abi_tag_ovld2_function (long)
59 struct ABI1 test_abi_tag_struct
61 ABI2
test_abi_tag_struct ();
62 ABI2
~test_abi_tag_struct ();
65 test_abi_tag_struct::test_abi_tag_struct ()
68 test_abi_tag_struct::~test_abi_tag_struct ()
71 ABI3 test_abi_tag_struct s
;
73 /* Code for the abi-tag in parameters test. */
75 struct ABI2 abi_tag_param_struct1
78 struct ABI2 abi_tag_param_struct2
82 test_abi_tag_in_params (abi_tag_param_struct1
)
86 test_abi_tag_in_params (abi_tag_param_struct1
, abi_tag_param_struct2
)