xref: /netbsd-src/external/lgpl3/mpfr/dist/tests/tassert.c (revision ba125506a622fe649968631a56eba5d42ff57863)
1299c6f0cSmrg /* tassert -- Test for assertions.
2299c6f0cSmrg 
3*ba125506Smrg Copyright 2012-2023 Free Software Foundation, Inc.
4299c6f0cSmrg Contributed by the AriC and Caramba projects, INRIA.
5299c6f0cSmrg 
6299c6f0cSmrg This file is part of the GNU MPFR Library.
7299c6f0cSmrg 
8299c6f0cSmrg The GNU MPFR Library is free software; you can redistribute it and/or modify
9299c6f0cSmrg it under the terms of the GNU Lesser General Public License as published by
10299c6f0cSmrg the Free Software Foundation; either version 3 of the License, or (at your
11299c6f0cSmrg option) any later version.
12299c6f0cSmrg 
13299c6f0cSmrg The GNU MPFR Library is distributed in the hope that it will be useful, but
14299c6f0cSmrg WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15299c6f0cSmrg or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
16299c6f0cSmrg License for more details.
17299c6f0cSmrg 
18299c6f0cSmrg You should have received a copy of the GNU Lesser General Public License
19299c6f0cSmrg along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
202ba2404bSmrg https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
21299c6f0cSmrg 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
22299c6f0cSmrg 
23299c6f0cSmrg #define MPFR_NEED_LONGLONG_H
24299c6f0cSmrg #include "mpfr-test.h"
25299c6f0cSmrg 
26299c6f0cSmrg int
main(int argc,char ** argv)27299c6f0cSmrg main (int argc, char **argv)
28299c6f0cSmrg {
29299c6f0cSmrg   tests_start_mpfr ();
30299c6f0cSmrg   tests_expect_abort ();
31299c6f0cSmrg 
32299c6f0cSmrg   printf ("[tassert] Check for good handling of assertions.\n");
33299c6f0cSmrg   MPFR_ASSERTN (0);
34299c6f0cSmrg 
35299c6f0cSmrg   tests_end_mpfr ();
36299c6f0cSmrg   return -1; /* Should not be executed */
37299c6f0cSmrg }
38