diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2002-06-21 20:21:03 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@redhat.com> | 2002-06-21 20:21:03 +0000 |
commit | 55473e2c361f3baedf974687a6a2dc1d2148fda6 (patch) | |
tree | 5a37abad29c7d3b57928cf12073d1fc3f1aefe6f /libstdc++-v3/testsuite | |
parent | 5bb4020aad4cb4dfb6191882a3925ad37ff535ac (diff) |
2002-06-21 Benjamin Kosnik <bkoz@redhat.com>
* include/c_compatibility: New.
* include/c_compatibility/assert.h: New.
* include/c_compatibility/ctype.h: New.
* include/c_compatibility/errno.h: New.
* include/c_compatibility/float.h: New.
* include/c_compatibility/iso646.h: New.
* include/c_compatibility/limits.h: New.
* include/c_compatibility/locale.h: New.
* include/c_compatibility/math.h: New.
* include/c_compatibility/setjmp.h: New.
* include/c_compatibility/signal.h: New.
* include/c_compatibility/stdarg.h: New.
* include/c_compatibility/stddef.h: New.
* include/c_compatibility/stdio.h: New.
* include/c_compatibility/stdlib.h: New.
* include/c_compatibility/string.h: New.
* include/c_compatibility/time.h: New.
* include/c_compatibility/wchar.h: New.
* include/c_compatibility/wctype.h: New.
* include/c/std_cerrno.h: Get out of the way... define errno.
* include/c/std_cmath.h: Add abs, modf overloads.
Undefine C99 isms. Still not sure how to deal with this sanely.
* include/c/std_csetjmp.h: Tweak.
* include/c/std_cwchar.h: Include cstddef for size_t.
* include/c_std/std_cmath.h: Remove extra function.
Pendantic std usage in testsuites.
* testsuite/17_intro/header_cstdlib.cc (test01): Qualify ldiv_t
with std.
* testsuite/17_intro/header_cwchar.cc: Tweak.
* testsuite/22_locale/codecvt_members_char_char.cc (test03): Use
std::setlocale.
* testsuite/22_locale/ctype_to_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_to_char.cc (test05): Same.
* testsuite/22_locale/ctype_is_wchar_t.cc (test05): Same.
* testsuite/22_locale/ctype_is_char.cc (test05): Same.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Same.
* testsuite/22_locale/time_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/time_get_members_char.cc (test08): Same.
* testsuite/22_locale/time_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/time_put_members_char.cc (test04): Same.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/num_put_members_char.cc (test04): Same.
* testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/numpunct_members_char.cc (test03): Same.
* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
* testsuite/22_locale/num_get_members_char.cc: Same.
* testsuite/22_locale/money_put_members_wchar_t.cc (test07): Same.
* testsuite/22_locale/money_put_members_char.cc (test07): Same.
* testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Same.
* testsuite/22_locale/moneypunct_members_char.cc (test03): Same.
* testsuite/22_locale/money_get_members_wchar_t.cc (test08): Same.
* testsuite/22_locale/money_get_members_char.cc (test08): Same.
* testsuite/22_locale/messages_members_char.cc (test03): Same.
* testsuite/22_locale/collate_members_wchar_t.cc (test04): Same.
* testsuite/22_locale/collate_members_char.cc (test04): Same.
* testsuite/26_numerics/fabs_inline.cc: Use std::printf.
* testsuite/27_io/istream_seeks.cc (test02): Qualify abort.
* testsuite/27_io/istream_extractor_arith.cc (test11): Qualify strtol.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@54891 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
30 files changed, 60 insertions, 60 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc index 32827cfbca0..f86f423d875 100644 --- a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc +++ b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc @@ -1,6 +1,6 @@ // 2000-01-01 bkoz -// Copyright (C) 2001 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -26,12 +26,13 @@ void test01() { long a = std::abs(1L); - ldiv_t b = std::div(2L, 1L); + std::div(2L, 1L); + std::ldiv_t b; } void test02() { - // Make sure size_t is in namespace std + // Make sure size_t is in namespace std. std::size_t i = 5; } diff --git a/libstdc++-v3/testsuite/17_intro/header_cwchar.cc b/libstdc++-v3/testsuite/17_intro/header_cwchar.cc index 0f9974ddb13..8d65e024195 100644 --- a/libstdc++-v3/testsuite/17_intro/header_cwchar.cc +++ b/libstdc++-v3/testsuite/17_intro/header_cwchar.cc @@ -22,7 +22,6 @@ #include <cwchar> - int main(void) { // Make sure size_t is in namespace std diff --git a/libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc b/libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc index 38764d43795..9cf4e7d5c70 100644 --- a/libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc +++ b/libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc @@ -102,12 +102,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc b/libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc index 3d82fc5e4e9..1eb505fb6bd 100644 --- a/libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc +++ b/libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc @@ -134,12 +134,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/collate_members_char.cc b/libstdc++-v3/testsuite/22_locale/collate_members_char.cc index 0a2b29b6ebf..eccf7caae1c 100644 --- a/libstdc++-v3/testsuite/22_locale/collate_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/collate_members_char.cc @@ -166,13 +166,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test03(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc index b120397a649..c59ab329ebd 100644 --- a/libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc @@ -166,13 +166,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test03(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/ctype_is_char.cc b/libstdc++-v3/testsuite/22_locale/ctype_is_char.cc index 5955cf3ed0e..1b97b4aac2f 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype_is_char.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype_is_char.cc @@ -252,14 +252,14 @@ void test05() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test02(); test03(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/ctype_is_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/ctype_is_wchar_t.cc index 50aa0dcdf1a..5ca171b51e8 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype_is_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype_is_wchar_t.cc @@ -175,12 +175,12 @@ void test05() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/ctype_to_char.cc b/libstdc++-v3/testsuite/22_locale/ctype_to_char.cc index b4eb8840db9..ed350955572 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype_to_char.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype_to_char.cc @@ -121,12 +121,12 @@ void test05() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/ctype_to_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/ctype_to_wchar_t.cc index 70ca529826e..52180356a0a 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype_to_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype_to_wchar_t.cc @@ -122,12 +122,12 @@ void test05() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/messages_members_char.cc b/libstdc++-v3/testsuite/22_locale/messages_members_char.cc index eeb6ef30679..62126557c16 100644 --- a/libstdc++-v3/testsuite/22_locale/messages_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/messages_members_char.cc @@ -104,12 +104,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc b/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc index 9807a39002b..bf2e47e3a9c 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get_members_char.cc @@ -551,7 +551,7 @@ void test08() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -561,7 +561,7 @@ void test08() test05(); test06(); test07(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc index 90a32cd4854..3ac25d0204a 100644 --- a/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc @@ -552,7 +552,7 @@ void test08() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -562,7 +562,7 @@ void test08() test05(); test06(); test07(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc b/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc index f1b2e5e9d5a..708ae4243ff 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put_members_char.cc @@ -373,7 +373,7 @@ void test07() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -382,7 +382,7 @@ void test07() test03(); test05(); test06(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc index 034ae564c7c..1bfe86ba808 100644 --- a/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc @@ -373,7 +373,7 @@ void test07() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -382,7 +382,7 @@ void test07() test03(); test05(); test06(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc b/libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc index 5beb5ee9fb0..3cb6c88a880 100644 --- a/libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc @@ -128,12 +128,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc index c79e170de40..a81fe0a2362 100644 --- a/libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc @@ -129,12 +129,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc b/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc index 8786a2cb9b0..06e3322e0ad 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get_members_char.cc @@ -418,7 +418,7 @@ void test06() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -426,7 +426,7 @@ void test06() test02(); test04(); test05(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc index 6b7d1475666..088d4f8c9e3 100644 --- a/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc @@ -420,7 +420,7 @@ void test06() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -428,7 +428,7 @@ void test06() test02(); test04(); test05(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc b/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc index bd116e6c629..fcc1f79b31d 100644 --- a/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/num_put_members_char.cc @@ -315,13 +315,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test02(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc index 65bb70ecfb5..4fbf25f2121 100644 --- a/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc @@ -315,13 +315,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test02(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc b/libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc index df1835707f6..926501c93b2 100644 --- a/libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc @@ -106,12 +106,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc index 8b98ff90f8a..14e9321ecf0 100644 --- a/libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc @@ -104,12 +104,12 @@ void test03() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/time_get_members_char.cc b/libstdc++-v3/testsuite/22_locale/time_get_members_char.cc index 74b358bd294..b5c8f098031 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get_members_char.cc @@ -704,7 +704,7 @@ void test08() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -714,7 +714,7 @@ void test08() test04(); test05(); test06(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc index d8c568d29c4..89efdb9fea5 100644 --- a/libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc @@ -704,7 +704,7 @@ void test08() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; @@ -714,7 +714,7 @@ void test08() test04(); test05(); test06(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/time_put_members_char.cc b/libstdc++-v3/testsuite/22_locale/time_put_members_char.cc index 09a4d4f500d..c657706f714 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put_members_char.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put_members_char.cc @@ -255,13 +255,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test02(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc b/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc index fa576be970a..347f41f526e 100644 --- a/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc +++ b/libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc @@ -257,13 +257,13 @@ void test04() { bool test = true; - const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp"); + const char* tentLANG = std::setlocale(LC_ALL, "ja_JP.eucjp"); if (tentLANG != NULL) { std::string preLANG = tentLANG; test01(); test02(); - std::string postLANG = setlocale(LC_ALL, NULL); + std::string postLANG = std::setlocale(LC_ALL, NULL); VERIFY( preLANG == postLANG ); } } diff --git a/libstdc++-v3/testsuite/26_numerics/fabs_inline.cc b/libstdc++-v3/testsuite/26_numerics/fabs_inline.cc index bb84a5809f3..5dffb7d12c1 100644 --- a/libstdc++-v3/testsuite/26_numerics/fabs_inline.cc +++ b/libstdc++-v3/testsuite/26_numerics/fabs_inline.cc @@ -1,4 +1,4 @@ -// Copyright (C) 1999 Free Software Foundation, Inc. +// Copyright (C) 1999, 2002 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -32,6 +32,6 @@ int main () double a = fabs (-2.4); realfn myfn = fabs; double b = myfn (-2.5); - printf ("%f, %f, %p\n", a, b, myfn); + std::printf ("%f, %f, %p\n", a, b, myfn); return 0; } diff --git a/libstdc++-v3/testsuite/27_io/istream_extractor_arith.cc b/libstdc++-v3/testsuite/27_io/istream_extractor_arith.cc index c3181391850..c184b3fade2 100644 --- a/libstdc++-v3/testsuite/27_io/istream_extractor_arith.cc +++ b/libstdc++-v3/testsuite/27_io/istream_extractor_arith.cc @@ -1,6 +1,6 @@ // 1999-04-12 bkoz -// Copyright (C) 1999, 2000 Free Software Foundation, Inc. +// Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -500,7 +500,7 @@ bool test11() // sanity check via 'C' library call char* err; - long l = strtol(cstrlit, &err, 0); + long l = std::strtol(cstrlit, &err, 0); std::istringstream iss(cstrlit); iss.setf(std::ios::fmtflags(0), std::ios::basefield); diff --git a/libstdc++-v3/testsuite/27_io/istream_seeks.cc b/libstdc++-v3/testsuite/27_io/istream_seeks.cc index 6574b0a059b..cd0e0656748 100644 --- a/libstdc++-v3/testsuite/27_io/istream_seeks.cc +++ b/libstdc++-v3/testsuite/27_io/istream_seeks.cc @@ -1,6 +1,6 @@ // 2000-06-29 bkoz -// Copyright (C) 2000, 2001 Free Software Foundation +// Copyright (C) 2000, 2001, 2002 Free Software Foundation // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -108,7 +108,7 @@ void test02() std::fstream ofstrm; ofstrm.open("istream_seeks-3.txt", std::ios::out); if (!ofstrm) - abort(); + std::abort(); write_rewind(ofstrm); ofstrm.close(); |