summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/21_strings
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2000-10-24 17:00:59 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2000-10-24 17:00:59 +0000
commitdcc41852e10b89db9b47fdf02caf79b8ddb3b0bd (patch)
tree10b6cbeac1a09a9c386d77a8bd37241cac3b1fd0 /libstdc++-v3/testsuite/21_strings
parent060974d0af8d8162df62df7f4dfbf95536df29b5 (diff)
downloadgcc-dcc41852e10b89db9b47fdf02caf79b8ddb3b0bd.tar.gz
compare.cc (test01): Add using declarations.
2000-10-23 Benjamin Kosnik <bkoz@redhat.com> * testsuite/21_strings/compare.cc (test01): Add using declarations. * include/c_std/bits/std_cerrno.h: And here. * include/c_std/bits/std_cassert.h: Tweaks. * mkcheck.in: Simplify. * acinclude.m4 (GLIBCPP_ENABLE_LONG_DOUBLE): Simplify. (GLIBCPP_ENABLE_LONG_LONG): Same. * aclocal.m4: Regenerate. * src/Makefile.am (c_shadow_headers): Add features.h, bits/wrap_features.h. * src/Makefile.in: Regenerate. * include/c_std/features.h: New file. * include/c_std/bits/wrap_features.h (_CPP_WRAP_FEATURES_H): New file. Need to have c++config.h included before this file so _ISOC99_SOURCE around. * include/c_std/sys/cdefs.h: Hack. * include/c_std/stdlib.h: Same, use c++config.h. * include/c_std/bits/std_cstdlib.h: Use _GLIBCPP_HAVE_STRTOLD. * include/c_std/bits/std_cassert.h: Fix. * include/c_std/bits/std_cerrno.h: Make consistent. * include/c_std/bits/std_csetjmp.h (setjmp): Unscope global declaration from ::_C_legacy to _C_legacy. * include/c_std/bits/std_cstdio.h: same with printf. * include/c_std/stdio.h: And here. * include/c_std/bits/std_cstdlib.h: abort, exit comment. * include/c_std/stdlib.h: Same here. From-SVN: r37035
Diffstat (limited to 'libstdc++-v3/testsuite/21_strings')
-rw-r--r--libstdc++-v3/testsuite/21_strings/compare.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/compare.cc b/libstdc++-v3/testsuite/21_strings/compare.cc
index 822d3682b79..16055ff3481 100644
--- a/libstdc++-v3/testsuite/21_strings/compare.cc
+++ b/libstdc++-v3/testsuite/21_strings/compare.cc
@@ -75,6 +75,10 @@ test01()
std::string str_1("costa marbella");
std::string str_2;
+ using std::strcmp;
+ using std::strncmp;
+ using std::memcmp;
+
//sanity check
test_value(strcmp("costa marbella", "costa rica"), lt);
test_value(strcmp("costa rica", "costa rica"), z);