diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 02:23:52 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 02:23:52 +0000 |
commit | 4bff4fb7a87d416e2c430f1e154cccecef872f02 (patch) | |
tree | 90cb7664605cb51966af7586d487d9d26ffc94ce /libstdc++-v3/testsuite | |
parent | 1dea8d9d8bd52e2984b7ab28141b95cdb7ad1235 (diff) | |
download | gcc-4bff4fb7a87d416e2c430f1e154cccecef872f02.tar.gz |
2001-04-25 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cmath.h (std): Explicitly inject c99 names.
* include/c_std/bits/std_cstdlib.h (std): Same, except for llabs.
* include/c_std/bits/std_cwchar.h (std): Same.
* acconfig.h (std): Remove c99 injection into std.
* config.h.in: Regenerate.
* testsuite/README: Fix typo.
* include/bits/codecvt.h: Remove warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41568 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc | 29 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/README | 2 |
2 files changed, 15 insertions, 16 deletions
diff --git a/libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc b/libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc index 4fa586e004d..132cebf5ab7 100644 --- a/libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc +++ b/libstdc++-v3/testsuite/26_numerics/c99_classification_macros_c++.cc @@ -59,26 +59,25 @@ void isunordered() { } template <typename _Tp> void test_c99_classify() { - using namespace std; - test = bool; + bool test = true; typedef _Tp fp_type; fp_type f1 = 1.0; fp_type f2 = 3.0; int res = 0; - res = fpclassify(f1); - res = isfinite(f2); - res = isinf(f1); - res = isnan(f2); - res = isnormal(f1); - res = signbit(f2); - res = isgreater(f1, f2); - res = isgreaterequal(f1, f2); - res = isless(f1, f2); - res = islessequal(f1,f2); - res = islessgreater(f1, f2); - res = isunordered(f1, f2); + res = std::fpclassify(f1); + res = std::isfinite(f2); + res = std::isinf(f1); + res = std::isnan(f2); + res = std::isnormal(f1); + res = std::signbit(f2); + res = std::isgreater(f1, f2); + res = std::isgreaterequal(f1, f2); + res = std::isless(f1, f2); + res = std::islessequal(f1,f2); + res = std::islessgreater(f1, f2); + res = std::isunordered(f1, f2); } #endif @@ -86,7 +85,7 @@ int main() { #if _GLIBCPP_USE_C99 test_c99_classify<float>(); - test_c99_classify<double>(); + //test_c99_classify<double>(); #endif return 0; } diff --git a/libstdc++-v3/testsuite/README b/libstdc++-v3/testsuite/README index c48f4db55b6..61c6bd21684 100644 --- a/libstdc++-v3/testsuite/README +++ b/libstdc++-v3/testsuite/README @@ -8,7 +8,7 @@ testcases should be written with the new style DejaGnu framework in mind. To ease transition, here is the list of dg-keyword documentation -lifted from dg.exp -- eventuaklly we should improve DejaGnu +lifted from dg.exp -- eventually we should improve DejaGnu documentation, but getting checkin account currently demands Pyrrhic effort. |