1// Copyright (C) 2003-2015 Free Software Foundation, Inc.
2//
3// This file is part of the GNU ISO C++ Library.  This library is free
4// software; you can redistribute it and/or modify it under the
5// terms of the GNU General Public License as published by the
6// Free Software Foundation; either version 3, or (at your option)
7// any later version.
8
9// This library is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License along
15// with this library; see the file COPYING3.  If not see
16// <http://www.gnu.org/licenses/>.
17
18// PR 3181
19// Origin: pete@toyon.com
20
21#include <cmath>
22
23int main()
24{
25  int i = -1;
26  int j = 9;
27  double ans;
28  ans = std::abs(i);
29  ans = std::acos(i);
30  ans = std::asin(i);
31  ans = std::atan(i);
32  ans = std::atan2(i, j);
33  ans = std::cos(i);
34  ans = std::cosh(i);
35  ans = std::exp(i);
36  ans = std::fabs(i);
37  ans = std::floor(i);
38  ans = std::log(i);
39  ans = std::log10(i);
40  ans = std::sqrt(i);
41  ans = std::sin(i);
42  ans = std::sinh(j);
43  ans = std::tan(i);
44  ans = std::tanh(i);
45  ans = ans; // Suppress unused warnings.
46}
47