Debian Codegraph @

cmake/cxx_tests/isnormal_in_namespace_std.cpp

raw
1 // DESCRIPTION
2 //
3 // Test to check whether the isnormal function is provided by the cmath header file in std::
4 // namespace, define HAVE_ISNORMAL_IN_NAMESPACE_STD.
5 //
6 // COPYLEFT
7 //
8 // Copyright (c) 2011 Theo Papadopoulo <[email protected]>
9 //
10 // Copying and distribution of this file, with or without modification, are
11 // permitted in any medium without royalty provided the copyright notice
12 // and this notice are preserved.
13
14 #include <cmath>
15
16 namespace S {
17 bool isnormal(const double x) { return std::isnormal(x); }
18 }
19
20 int main() {
21 double d = 3.0;
22 const bool res = S::isnormal(d);
23 return 0;
24 }