From 4bff4fb7a87d416e2c430f1e154cccecef872f02 Mon Sep 17 00:00:00 2001 From: bkoz Date: Thu, 26 Apr 2001 02:23:52 +0000 Subject: 2001-04-25 Benjamin Kosnik * 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 --- .../26_numerics/c99_classification_macros_c++.cc | 29 +++++++++++----------- libstdc++-v3/testsuite/README | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) (limited to 'libstdc++-v3/testsuite') 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 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(); - test_c99_classify(); + //test_c99_classify(); #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. -- cgit v1.2.1