dust3d/thirdparty/cgal/CGAL-5.1/cmake/modules/test_MPFI.cpp

25 lines
511 B
C++
Raw Normal View History

2020-10-13 12:44:25 +00:00
// Copyright (c) 2010 Inria Lorraine (France). All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author: Luis Peñaranda <luis.penaranda@gmx.com>
#include <mpfi.h>
int main(){
mpfi_t a;
mpfi_init_set_si(a,-100);
mpfi_add_ui(a,a,101);
if(mpfi_cmp_ui(a,1)==0) {
mpfi_clear(a);
return 0;
}
else {
return 1;
}
}