1 | /* Check LD_AUDIT for aarch64 ABI specifics. |
2 | Copyright (C) 2022-2024 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. |
4 | |
5 | The GNU C Library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) any later version. |
9 | |
10 | The GNU C Library 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 GNU |
13 | Lesser General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Lesser General Public |
16 | License along with the GNU C Library; if not, see |
17 | <https://www.gnu.org/licenses/>. */ |
18 | |
19 | #include <array_length.h> |
20 | #include <string.h> |
21 | #include <support/check.h> |
22 | #include "tst-audit27mod.h" |
23 | |
24 | int |
25 | do_test (void) |
26 | { |
27 | { |
28 | float r = tst_audit27_func_float (FUNC_FLOAT_ARG0, FUNC_FLOAT_ARG1, |
29 | FUNC_FLOAT_ARG2, FUNC_FLOAT_ARG3, |
30 | FUNC_FLOAT_ARG4, FUNC_FLOAT_ARG5, |
31 | FUNC_FLOAT_ARG6, FUNC_FLOAT_ARG7); |
32 | if (r != FUNC_FLOAT_RET) |
33 | FAIL_EXIT1 ("tst_audit27_func_float() returned %a, expected %a" , |
34 | r, FUNC_FLOAT_RET); |
35 | } |
36 | |
37 | { |
38 | double r = tst_audit27_func_double (FUNC_DOUBLE_ARG0, FUNC_DOUBLE_ARG1, |
39 | FUNC_DOUBLE_ARG2, FUNC_DOUBLE_ARG3, |
40 | FUNC_DOUBLE_ARG4, FUNC_DOUBLE_ARG5, |
41 | FUNC_DOUBLE_ARG6, FUNC_DOUBLE_ARG7); |
42 | if (r != FUNC_DOUBLE_RET) |
43 | FAIL_EXIT1 ("tst_audit27_func_double() returned %la, expected %la" , |
44 | r, FUNC_DOUBLE_RET); |
45 | } |
46 | |
47 | { |
48 | long double r = tst_audit27_func_ldouble (FUNC_LDOUBLE_ARG0, |
49 | FUNC_LDOUBLE_ARG1, |
50 | FUNC_LDOUBLE_ARG2, |
51 | FUNC_LDOUBLE_ARG3, |
52 | FUNC_LDOUBLE_ARG4, |
53 | FUNC_LDOUBLE_ARG5, |
54 | FUNC_LDOUBLE_ARG6, |
55 | FUNC_LDOUBLE_ARG7); |
56 | if (r != FUNC_LDOUBLE_RET) |
57 | FAIL_EXIT1 ("tst_audit27_func_ldouble() returned %La, expected %La" , |
58 | r, FUNC_LDOUBLE_RET); |
59 | } |
60 | |
61 | return 0; |
62 | } |
63 | |
64 | #include <support/test-driver.c> |
65 | |