xref: /netbsd-src/external/lgpl3/mpc/dist/tests/tcmp_abs.c (revision 39f28e1e142c5bfb6be935a49cb55e2287fec7ea)
1*39f28e1eSmrg /* tcmp_abs -- test file for mpc_cmp_abs.
2*39f28e1eSmrg 
3*39f28e1eSmrg Copyright (C) 2016 INRIA
4*39f28e1eSmrg 
5*39f28e1eSmrg This file is part of GNU MPC.
6*39f28e1eSmrg 
7*39f28e1eSmrg GNU MPC is free software; you can redistribute it and/or modify it under
8*39f28e1eSmrg the terms of the GNU Lesser General Public License as published by the
9*39f28e1eSmrg Free Software Foundation; either version 3 of the License, or (at your
10*39f28e1eSmrg option) any later version.
11*39f28e1eSmrg 
12*39f28e1eSmrg GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
13*39f28e1eSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14*39f28e1eSmrg FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15*39f28e1eSmrg more details.
16*39f28e1eSmrg 
17*39f28e1eSmrg You should have received a copy of the GNU Lesser General Public License
18*39f28e1eSmrg along with this program. If not, see http://www.gnu.org/licenses/ .
19*39f28e1eSmrg */
20*39f28e1eSmrg 
21*39f28e1eSmrg #include "mpc-tests.h"
22*39f28e1eSmrg 
23*39f28e1eSmrg #define MPC_FUNCTION_CALL                                               \
24*39f28e1eSmrg   P[0].i = mpc_cmp_abs (P[1].mpc, P[2].mpc)
25*39f28e1eSmrg 
26*39f28e1eSmrg #include "data_check.tpl"
27*39f28e1eSmrg 
28*39f28e1eSmrg int
main(void)29*39f28e1eSmrg main (void)
30*39f28e1eSmrg {
31*39f28e1eSmrg   test_start ();
32*39f28e1eSmrg 
33*39f28e1eSmrg   data_check_template ("cmp_abs.dsc", "cmp_abs.dat");
34*39f28e1eSmrg 
35*39f28e1eSmrg   test_end ();
36*39f28e1eSmrg 
37*39f28e1eSmrg   return 0;
38*39f28e1eSmrg }
39