acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls...

2001-08-06  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE):  New macro, calls...
	(GLIBCPP_CHECK_SETRLIMIT):  ...this new macro, which also uses...
	(GLIBCPP_CHECK_SETRLIMIT_ancilliary):  ...this new macro.
	* configure.in (AM_CONFIG_HEADER):  Also generate testsuite_hooks.h.
	Call GLIBCPP_CONFIGURE_TESTSUITE.
	* aclocal.m4:  Regenerate.
	* config.h.in:  Regenerate.
	* configure:  Regenerate.

	* testsuite/lib/libstdc++-v3-dg.exp:  Download new header instead
	of old header.

	* testsuite_flags.in:  Add build dir's testsuite to INCLUDES.
	* testsuite/debug_assert.h:  Removed; contents merged into...
	* testsuite/testsuite_hooks.h.in:  ...here.  New file.
	* testsuite/17_intro/header_ciso646.cc:  No longer include
	debug_assert.h, include testsuite_hooks.h instead.
	* testsuite/17_intro/header_fstream.cc:  Likewise.
	* testsuite/17_intro/header_iomanip.cc:  Likewise.
	* testsuite/17_intro/header_ios.cc:  Likewise.
	* testsuite/17_intro/header_iosfwd.cc:  Likewise.
	* testsuite/17_intro/header_iostream.cc:  Likewise.
	* testsuite/17_intro/header_istream.cc:  Likewise.
	* testsuite/17_intro/header_ostream.cc:  Likewise.
	* testsuite/17_intro/header_sstream.cc:  Likewise.
	* testsuite/17_intro/header_streambuf.cc:  Likewise.
	* testsuite/18_support/numeric_limits.cc:  Likewise.
	* testsuite/19_diagnostics/stdexceptions.cc:  Likewise.
	* testsuite/20_util/allocator_members.cc:  Likewise.
	* testsuite/20_util/auto_ptr.cc:  Likewise.
	* testsuite/20_util/pairs.cc:  Likewise.
	* testsuite/21_strings/append.cc:  Likewise.
	* testsuite/21_strings/capacity.cc:  Likewise.
	* testsuite/21_strings/char_traits_requirements.cc:  Likewise.
	* testsuite/21_strings/compare.cc:  Likewise.
	* testsuite/21_strings/ctor_copy_dtor.cc:  Likewise.  Also set up
	call to (disabled) __set_testsuite_memlimit() wrapper.
	* testsuite/21_strings/element_access.cc:  Likewise.
	* testsuite/21_strings/find.cc:  Likewise.
	* testsuite/21_strings/insert.cc:  Likewise.  Also set up call to
	(disabled) __set_testsuite_memlimit() wrapper.
	* testsuite/21_strings/inserters_extractors.cc:  Likewise.
	* testsuite/21_strings/invariants.cc:  Likewise.
	* testsuite/21_strings/nonmember.cc:  Likewise.
	* testsuite/21_strings/operations.cc:  Likewise.
	* testsuite/21_strings/replace.cc:  Likewise.
	* testsuite/21_strings/rfind.cc:  Likewise.
	* testsuite/21_strings/substr.cc:  Likewise.
	* testsuite/22_locale/codecvt_char_char.cc:  Likewise.
	* testsuite/22_locale/codecvt_unicode_char.cc:  Likewise.
	* testsuite/22_locale/codecvt_unicode_wchar_t.cc:  Likewise.
	* testsuite/22_locale/codecvt_wchar_t_char.cc:  Likewise.
	* testsuite/22_locale/ctor_copy_dtor.cc:  Likewise.
	* testsuite/22_locale/ctype_char_members.cc:  Likewise.
	* testsuite/22_locale/ctype_wchar_t_members.cc:  Likewise.
	* testsuite/22_locale/facet.cc:  Likewise.
	* testsuite/22_locale/global_templates.cc:  Likewise.
	* testsuite/22_locale/members.cc:  Likewise.
	* testsuite/22_locale/numpunct_byname.cc:  Likewise.
	* testsuite/22_locale/numpunct_char_members.cc:  Likewise.
	* testsuite/22_locale/operators.cc:  Likewise.
	* testsuite/22_locale/static_members.cc:  Likewise.
	* testsuite/23_containers/bitset_ctor.cc:  Likewise.
	* testsuite/23_containers/bitset_members.cc:  Likewise.
	* testsuite/23_containers/bitset_shift.cc:  Likewise.
	* testsuite/23_containers/vector_capacity.cc:  Likewise.
	* testsuite/23_containers/vector_ctor.cc:  Likewise.
	* testsuite/23_containers/vector_element_access.cc:  Likewise.
	* testsuite/23_containers/vector_modifiers.cc:  Likewise.
	* testsuite/24_iterators/istreambuf_iterator.cc:  Likewise.
	* testsuite/24_iterators/iterator.cc:  Likewise.
	* testsuite/24_iterators/ostreambuf_iterator.cc:  Likewise.
	* testsuite/25_algorithms/binary_search.cc:  Likewise.
	* testsuite/25_algorithms/copy.cc:  Likewise.
	* testsuite/25_algorithms/heap.cc:  Likewise.
	* testsuite/25_algorithms/lower_bound.cc:  Likewise.
	* testsuite/25_algorithms/min_max.cc:  Likewise.
	* testsuite/25_algorithms/partition.cc:  Likewise.
	* testsuite/25_algorithms/rotate.cc:  Likewise.
	* testsuite/25_algorithms/sort.cc:  Likewise.
	* testsuite/26_numerics/c_math.cc:  Likewise.
	* testsuite/26_numerics/complex_inserters_extractors.cc:  Likewise.
	* testsuite/26_numerics/complex_value.cc:  Likewise.
	* testsuite/27_io/filebuf.cc:  Likewise.
	* testsuite/27_io/filebuf_members.cc:  Likewise.
	* testsuite/27_io/filebuf_virtuals.cc:  Likewise.
	* testsuite/27_io/fpos.cc:  Likewise.
	* testsuite/27_io/fstream_members.cc:  Likewise.
	* testsuite/27_io/ifstream_members.cc:  Likewise.
	* testsuite/27_io/ios_base_callbacks.cc:  Likewise.
	* testsuite/27_io/ios_base_members_static.cc:  Likewise.
	* testsuite/27_io/ios_base_storage.cc:  Likewise.
	* testsuite/27_io/ios_ctor.cc:  Likewise.
	* testsuite/27_io/ios_init.cc:  Likewise.
	* testsuite/27_io/ios_manip_basefield.cc:  Likewise.
	* testsuite/27_io/ios_manip_fmtflags.cc:  Likewise.
	* testsuite/27_io/ios_members.cc:  Likewise.
	* testsuite/27_io/istream_extractor_arith.cc:  Likewise.
	* testsuite/27_io/istream_extractor_char.cc:  Likewise.
	* testsuite/27_io/istream_extractor_other.cc:  Likewise.
	* testsuite/27_io/istream_manip.cc:  Likewise.
	* testsuite/27_io/istream_seeks.cc:  Likewise.
	* testsuite/27_io/istream_sentry.cc:  Likewise.
	* testsuite/27_io/istream_unformatted.cc:  Likewise.
	* testsuite/27_io/istringstream_members.cc:  Likewise.
	* testsuite/27_io/narrow_stream_objects.cc:  Likewise.
	* testsuite/27_io/ofstream_members.cc:  Likewise.
	* testsuite/27_io/ostream_inserter_arith.cc:  Likewise.
	* testsuite/27_io/ostream_inserter_char.cc:  Likewise.
	* testsuite/27_io/ostream_inserter_other.cc:  Likewise.
	* testsuite/27_io/ostream_manip.cc:  Likewise.
	* testsuite/27_io/ostream_seeks.cc:  Likewise.
	* testsuite/27_io/ostream_unformatted.cc:  Likewise.
	* testsuite/27_io/ostringstream_members.cc:  Likewise.
	* testsuite/27_io/streambuf.cc:  Likewise.
	* testsuite/27_io/stringbuf.cc:  Likewise.
	* testsuite/27_io/stringbuf_virtuals.cc:  Likewise.
	* testsuite/27_io/stringstream.cc:  Likewise.
	* testsuite/27_io/stringstream_members.cc:  Likewise.
	* testsuite/27_io/wide_stream_objects.cc:  Likewise.

From-SVN: r44679
This commit is contained in:
Phil Edwards 2001-08-07 03:38:33 +00:00
parent 47907859fd
commit fe413112f8
112 changed files with 1542 additions and 1063 deletions

View File

@ -1,3 +1,126 @@
2001-08-06 Phil Edwards <pme@sources.redhat.com>
* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): New macro, calls...
(GLIBCPP_CHECK_SETRLIMIT): ...this new macro, which also uses...
(GLIBCPP_CHECK_SETRLIMIT_ancilliary): ...this new macro.
* configure.in (AM_CONFIG_HEADER): Also generate testsuite_hooks.h.
Call GLIBCPP_CONFIGURE_TESTSUITE.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
* testsuite/lib/libstdc++-v3-dg.exp: Download new header instead
of old header.
* testsuite_flags.in: Add build dir's testsuite to INCLUDES.
* testsuite/debug_assert.h: Removed; contents merged into...
* testsuite/testsuite_hooks.h.in: ...here. New file.
* testsuite/17_intro/header_ciso646.cc: No longer include
debug_assert.h, include testsuite_hooks.h instead.
* testsuite/17_intro/header_fstream.cc: Likewise.
* testsuite/17_intro/header_iomanip.cc: Likewise.
* testsuite/17_intro/header_ios.cc: Likewise.
* testsuite/17_intro/header_iosfwd.cc: Likewise.
* testsuite/17_intro/header_iostream.cc: Likewise.
* testsuite/17_intro/header_istream.cc: Likewise.
* testsuite/17_intro/header_ostream.cc: Likewise.
* testsuite/17_intro/header_sstream.cc: Likewise.
* testsuite/17_intro/header_streambuf.cc: Likewise.
* testsuite/18_support/numeric_limits.cc: Likewise.
* testsuite/19_diagnostics/stdexceptions.cc: Likewise.
* testsuite/20_util/allocator_members.cc: Likewise.
* testsuite/20_util/auto_ptr.cc: Likewise.
* testsuite/20_util/pairs.cc: Likewise.
* testsuite/21_strings/append.cc: Likewise.
* testsuite/21_strings/capacity.cc: Likewise.
* testsuite/21_strings/char_traits_requirements.cc: Likewise.
* testsuite/21_strings/compare.cc: Likewise.
* testsuite/21_strings/ctor_copy_dtor.cc: Likewise. Also set up
call to (disabled) __set_testsuite_memlimit() wrapper.
* testsuite/21_strings/element_access.cc: Likewise.
* testsuite/21_strings/find.cc: Likewise.
* testsuite/21_strings/insert.cc: Likewise. Also set up call to
(disabled) __set_testsuite_memlimit() wrapper.
* testsuite/21_strings/inserters_extractors.cc: Likewise.
* testsuite/21_strings/invariants.cc: Likewise.
* testsuite/21_strings/nonmember.cc: Likewise.
* testsuite/21_strings/operations.cc: Likewise.
* testsuite/21_strings/replace.cc: Likewise.
* testsuite/21_strings/rfind.cc: Likewise.
* testsuite/21_strings/substr.cc: Likewise.
* testsuite/22_locale/codecvt_char_char.cc: Likewise.
* testsuite/22_locale/codecvt_unicode_char.cc: Likewise.
* testsuite/22_locale/codecvt_unicode_wchar_t.cc: Likewise.
* testsuite/22_locale/codecvt_wchar_t_char.cc: Likewise.
* testsuite/22_locale/ctor_copy_dtor.cc: Likewise.
* testsuite/22_locale/ctype_char_members.cc: Likewise.
* testsuite/22_locale/ctype_wchar_t_members.cc: Likewise.
* testsuite/22_locale/facet.cc: Likewise.
* testsuite/22_locale/global_templates.cc: Likewise.
* testsuite/22_locale/members.cc: Likewise.
* testsuite/22_locale/numpunct_byname.cc: Likewise.
* testsuite/22_locale/numpunct_char_members.cc: Likewise.
* testsuite/22_locale/operators.cc: Likewise.
* testsuite/22_locale/static_members.cc: Likewise.
* testsuite/23_containers/bitset_ctor.cc: Likewise.
* testsuite/23_containers/bitset_members.cc: Likewise.
* testsuite/23_containers/bitset_shift.cc: Likewise.
* testsuite/23_containers/vector_capacity.cc: Likewise.
* testsuite/23_containers/vector_ctor.cc: Likewise.
* testsuite/23_containers/vector_element_access.cc: Likewise.
* testsuite/23_containers/vector_modifiers.cc: Likewise.
* testsuite/24_iterators/istreambuf_iterator.cc: Likewise.
* testsuite/24_iterators/iterator.cc: Likewise.
* testsuite/24_iterators/ostreambuf_iterator.cc: Likewise.
* testsuite/25_algorithms/binary_search.cc: Likewise.
* testsuite/25_algorithms/copy.cc: Likewise.
* testsuite/25_algorithms/heap.cc: Likewise.
* testsuite/25_algorithms/lower_bound.cc: Likewise.
* testsuite/25_algorithms/min_max.cc: Likewise.
* testsuite/25_algorithms/partition.cc: Likewise.
* testsuite/25_algorithms/rotate.cc: Likewise.
* testsuite/25_algorithms/sort.cc: Likewise.
* testsuite/26_numerics/c_math.cc: Likewise.
* testsuite/26_numerics/complex_inserters_extractors.cc: Likewise.
* testsuite/26_numerics/complex_value.cc: Likewise.
* testsuite/27_io/filebuf.cc: Likewise.
* testsuite/27_io/filebuf_members.cc: Likewise.
* testsuite/27_io/filebuf_virtuals.cc: Likewise.
* testsuite/27_io/fpos.cc: Likewise.
* testsuite/27_io/fstream_members.cc: Likewise.
* testsuite/27_io/ifstream_members.cc: Likewise.
* testsuite/27_io/ios_base_callbacks.cc: Likewise.
* testsuite/27_io/ios_base_members_static.cc: Likewise.
* testsuite/27_io/ios_base_storage.cc: Likewise.
* testsuite/27_io/ios_ctor.cc: Likewise.
* testsuite/27_io/ios_init.cc: Likewise.
* testsuite/27_io/ios_manip_basefield.cc: Likewise.
* testsuite/27_io/ios_manip_fmtflags.cc: Likewise.
* testsuite/27_io/ios_members.cc: Likewise.
* testsuite/27_io/istream_extractor_arith.cc: Likewise.
* testsuite/27_io/istream_extractor_char.cc: Likewise.
* testsuite/27_io/istream_extractor_other.cc: Likewise.
* testsuite/27_io/istream_manip.cc: Likewise.
* testsuite/27_io/istream_seeks.cc: Likewise.
* testsuite/27_io/istream_sentry.cc: Likewise.
* testsuite/27_io/istream_unformatted.cc: Likewise.
* testsuite/27_io/istringstream_members.cc: Likewise.
* testsuite/27_io/narrow_stream_objects.cc: Likewise.
* testsuite/27_io/ofstream_members.cc: Likewise.
* testsuite/27_io/ostream_inserter_arith.cc: Likewise.
* testsuite/27_io/ostream_inserter_char.cc: Likewise.
* testsuite/27_io/ostream_inserter_other.cc: Likewise.
* testsuite/27_io/ostream_manip.cc: Likewise.
* testsuite/27_io/ostream_seeks.cc: Likewise.
* testsuite/27_io/ostream_unformatted.cc: Likewise.
* testsuite/27_io/ostringstream_members.cc: Likewise.
* testsuite/27_io/streambuf.cc: Likewise.
* testsuite/27_io/stringbuf.cc: Likewise.
* testsuite/27_io/stringbuf_virtuals.cc: Likewise.
* testsuite/27_io/stringstream.cc: Likewise.
* testsuite/27_io/stringstream_members.cc: Likewise.
* testsuite/27_io/wide_stream_objects.cc: Likewise.
2001-07-31 Loren J. Rittle <ljrittle@acm.org>
* src/gen-num-limits.cc: Use __LONG_LONG_MAX__.

View File

@ -1761,6 +1761,44 @@ dnl string, '#' otherwise
AC_SUBST(ifGNUmake)
])
dnl Check for headers for, and arguments to, the setrlimit() function.
dnl Used only in testsuite_hooks.h.
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
AC_TRY_COMPILE([#include <sys/resource.h>
#include <unistd.h>
], [ int f = RLIMIT_$1 ; ],
[glibcpp_mresult=1], [glibcpp_mresult=0])
AC_DEFINE_UNQUOTED(HAVE_MEMLIMIT_$1, $glibcpp_mresult,
[Only used in build directory testsuite_hooks.h.])
])
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
setrlimit_have_needed_headers=yes
AC_CHECK_HEADERS(sys/resource.h unistd.h,
[],
setrlimit_have_needed_headers=no)
# If don't have the headers, then we can't run the tests now, and we
# won't be seeing any of these during testsuite compilation.
if test $setrlimit_have_needed_headers = yes; then
# Can't do these in a loop, else the resulting syntax is wrong.
GLIBCPP_CHECK_SETRLIMIT_ancilliary(DATA)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(RSS)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(VMEM)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(AS)
fi
])
dnl
dnl Does any necessary configuration of the testsuite directory. Generates
dnl the testsuite_hooks.h header.
dnl
dnl GLIBCPP_CONFIGURE_TESTSUITE [no args]
AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
GLIBCPP_CHECK_SETRLIMIT
])
sinclude(../libtool.m4)
dnl The lines below arrange for aclocal not to bring an installed
dnl libtool.m4 into aclocal.m4, while still arranging for automake to

View File

@ -1773,6 +1773,44 @@ dnl string, '#' otherwise
AC_SUBST(ifGNUmake)
])
dnl Check for headers for, and arguments to, the setrlimit() function.
dnl Used only in testsuite_hooks.h.
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT_ancilliary, [
AC_TRY_COMPILE([#include <sys/resource.h>
#include <unistd.h>
], [ int f = RLIMIT_$1 ; ],
[glibcpp_mresult=1], [glibcpp_mresult=0])
AC_DEFINE_UNQUOTED(HAVE_MEMLIMIT_$1, $glibcpp_mresult,
[Only used in build directory testsuite_hooks.h.])
])
AC_DEFUN(GLIBCPP_CHECK_SETRLIMIT, [
setrlimit_have_needed_headers=yes
AC_CHECK_HEADERS(sys/resource.h unistd.h,
[],
setrlimit_have_needed_headers=no)
# If don't have the headers, then we can't run the tests now, and we
# won't be seeing any of these during testsuite compilation.
if test $setrlimit_have_needed_headers = yes; then
# Can't do these in a loop, else the resulting syntax is wrong.
GLIBCPP_CHECK_SETRLIMIT_ancilliary(DATA)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(RSS)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(VMEM)
GLIBCPP_CHECK_SETRLIMIT_ancilliary(AS)
fi
])
dnl
dnl Does any necessary configuration of the testsuite directory. Generates
dnl the testsuite_hooks.h header.
dnl
dnl GLIBCPP_CONFIGURE_TESTSUITE [no args]
AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
GLIBCPP_CHECK_SETRLIMIT
])
sinclude(../libtool.m4)
dnl The lines below arrange for aclocal not to bring an installed
dnl libtool.m4 into aclocal.m4, while still arranging for automake to

View File

@ -681,6 +681,9 @@
/* Define if you have the <sys/machine.h> header file. */
#undef HAVE_SYS_MACHINE_H
/* Define if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
@ -702,6 +705,18 @@
/* Define if sigsetjmp is available. */
#undef HAVE_SIGSETJMP
/* Only used in build directory testsuite_hooks.h. */
#undef HAVE_MEMLIMIT_DATA
/* Only used in build directory testsuite_hooks.h. */
#undef HAVE_MEMLIMIT_RSS
/* Only used in build directory testsuite_hooks.h. */
#undef HAVE_MEMLIMIT_VMEM
/* Only used in build directory testsuite_hooks.h. */
#undef HAVE_MEMLIMIT_AS
//
// Systems that have certain non-standard functions prefixed with an
// underscore, we'll handle those here. Must come after config.h.in.

1987
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -58,7 +58,7 @@ AC_SUBST(enable_shared)
AC_SUBST(enable_static)
GLIBCPP_CHECK_GNU_MAKE
AM_CONFIG_HEADER(config.h)
AM_CONFIG_HEADER(config.h testsuite/testsuite_hooks.h)
# Check for c++ or library specific bits that don't require linking.
GLIBCPP_CHECK_COMPILER_VERSION
@ -222,6 +222,10 @@ else
AC_FUNC_MMAP
fi
# Enable/configure some pieces which may require knowledge about the
# compiler situation (native/cross), which we just finished discovering.
GLIBCPP_CONFIGURE_TESTSUITE
# Propagate the target-specific source directories through the build chain.
OS_INC_SRCDIR=$os_include_dir/bits
ATOMICITY_INC_SRCDIR=$ATOMICITYH/bits

View File

@ -23,7 +23,7 @@
// { dg-do link }
#include <ciso646>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// 2.11 Keywords

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, fstream
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, iomanip
#include <iomanip>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, ios
#include <ios>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, iosfwd
#include <iosfwd>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, iostream
#include <iostream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, istream
#include <istream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, ostream
#include <ostream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, sstream
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 17.4.1.2 Headers, streambuf
#include <streambuf>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int main(void)

View File

@ -21,7 +21,7 @@
// 18.2.1.1 template class numeric_limits
#include <limits>
#include <debug_assert.h>
#include <testsuite_hooks.h>
template<typename T>

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// libstdc++/1972
void test01()

View File

@ -22,7 +22,7 @@
#include <memory>
#include <cstdlib>
#include <debug_assert.h>
#include <testsuite_hooks.h>
struct gnu { };

View File

@ -19,7 +19,7 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr]
#include <memory>
#include <debug_assert.h>
#include <testsuite_hooks.h>
struct A
{

View File

@ -21,7 +21,7 @@
// 20.2.2 Pairs
#include <utility>
#include <debug_assert.h>
#include <testsuite_hooks.h>
class gnu_obj
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <cstdio>
#include <debug_assert.h>
#include <testsuite_hooks.h>
template<typename T>
struct A { };

View File

@ -21,7 +21,7 @@
// 21.1.1 Characher traits requirements
#include <string>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int test01(void)
{

View File

@ -31,7 +31,7 @@
// things would be sorted in a dictionary.
#include <string>
#include <debug_assert.h>
#include <testsuite_hooks.h>
enum want_value {lt=0, z=1, gt=2};

View File

@ -23,7 +23,7 @@
#include <new>
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int test01(void)
{
@ -196,6 +196,7 @@ void test03()
int main()
{
__set_testsuite_memlimit();
test01();
test02();
test03();

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int test01(void)
{
@ -189,6 +189,7 @@ int test01(void)
int main()
{
__set_testsuite_memlimit();
test01();
return 0;
}

View File

@ -30,7 +30,7 @@
#include <fstream>
#include <iostream>
#include <iomanip>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// Do a quick sanity check on known problems with element access and
// ref-counted strings. These should all pass, regardless of the

View File

@ -111,7 +111,7 @@ template<class charT, class traits, class Allocator>
*/
#include <string>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <cstdio>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int test01(void)
{

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -20,7 +20,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// 21.3.6.2 basic_string rfind
bool test01(void)

View File

@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -21,7 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// Required instantiation, degenerate conversion.
// codecvt<char, char, mbstate_t>

View File

@ -21,7 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
using namespace std;

View File

@ -21,7 +21,7 @@
// 22.2.1.5 - Template class codecvt [lib.locale.codecvt]
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
using namespace std;

View File

@ -22,7 +22,7 @@
#include <cwchar> // for mbstate_t
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// Need to explicitly set the state(mbstate_t) to zero.

View File

@ -23,7 +23,7 @@
#include <cwchar> // for mbstate_t
#include <locale>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test00()

View File

@ -31,7 +31,7 @@
#include <locale>
// NB: Don't include any other headers in this file.
#include <debug_assert.h>
#include <testsuite_hooks.h>
class gnu_ctype: public std::ctype<char> { };

View File

@ -31,7 +31,7 @@
#include <locale>
// NB: Don't include any other headers in this file.
#include <debug_assert.h>
#include <testsuite_hooks.h>
#if _GLIBCPP_USE_WCHAR_T
class gnu_ctype: public std::ctype<wchar_t> {};

View File

@ -25,7 +25,7 @@
#include <stdexcept>
#include <string>
#include <iterator>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// 1 a class if a facet if it is publicly derived from another facet
typedef std::istreambuf_iterator<char> input_iterator;

View File

@ -22,7 +22,7 @@
#include <cwchar> // for mbstate_t
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
typedef std::codecvt<char, char, std::mbstate_t> ccodecvt;

View File

@ -22,7 +22,7 @@
#include <locale>
#include <string>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// XXX This test is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } }

View File

@ -21,7 +21,7 @@
// 22.2.3.2 Template class numpunct_byname
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -21,7 +21,7 @@
// 22.2.3.1.1 nunpunct members
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// XXX This test is not working for non-glibc locale models.
// { dg-do run { xfail *-*-* } }

View File

@ -22,7 +22,7 @@
#include <cwchar> // for mbstate_t
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
typedef std::codecvt<char, char, std::mbstate_t> ccodecvt;
class gnu_codecvt: public ccodecvt { };

View File

@ -22,7 +22,7 @@
#include <cwchar> // for mbstate_t
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
typedef std::codecvt<char, char, std::mbstate_t> ccodecvt;
class gnu_codecvt: public ccodecvt { };

View File

@ -22,7 +22,7 @@
#include <string>
#include <bitset>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -21,7 +21,7 @@
// 23.3.5.2 bitset members
#include <bitset>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -22,7 +22,7 @@
#include <set>
#include <bitset>
#include <debug_assert.h>
#include <testsuite_hooks.h>
static char original_bits[1024];
static char left_shifted[1024];

View File

@ -22,7 +22,7 @@
// 23.2.4.2 vector capacity
#include <vector>
#include <debug_assert.h>
#include <testsuite_hooks.h>
template<typename T>
struct A { };

View File

@ -21,7 +21,7 @@
// 23.2.4.1 vector constructors, copy, and assignment
#include <vector>
#include <debug_assert.h>
#include <testsuite_hooks.h>
template<typename T>
struct A { };

View File

@ -23,7 +23,7 @@
#include <vector>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
template<typename T>
struct A { };

View File

@ -21,7 +21,7 @@
// 23.2.4.3 vector modifiers
#include <vector>
#include "debug_assert.h"
#include "testsuite_hooks.h"
bool test = true;

View File

@ -22,7 +22,7 @@
#include <sstream>
#include <iterator>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -21,7 +21,7 @@
#include <string>
#include <vector>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int
string_stuff()

View File

@ -22,7 +22,7 @@
#include <sstream>
#include <iterator>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -19,7 +19,7 @@
// 25.3.3 [lib.alg.binary.search] Binary search algorithms.
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test = true;

View File

@ -19,7 +19,7 @@
// 25.2.12 [lib.alg.partitions] Partitions.
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test = true;

View File

@ -20,7 +20,7 @@
#include <algorithm>
//#include <cmath>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test = true;

View File

@ -17,7 +17,7 @@
// USA.
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// http://gcc.gnu.org/ml/libstdc++/2000-06/msg00316.html
struct foo { };

View File

@ -19,7 +19,7 @@
// USA.
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -20,7 +20,7 @@
#include <algorithm>
#include <functional>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test = true;

View File

@ -19,7 +19,7 @@
// 25.?? algorithms, rotate()
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
#include <list>
bool test = true;

View File

@ -19,7 +19,7 @@
// 25.3.1 algorithms, sort()
#include <algorithm>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test = true;

View File

@ -20,7 +20,7 @@
// USA.
#include <cmath>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// test compilation.
int

View File

@ -24,7 +24,7 @@
#include <string>
#include <sstream>
#include <complex>
#include <debug_assert.h>
#include <testsuite_hooks.h>
#include <cmath>
template<typename R>

View File

@ -20,7 +20,7 @@
// USA.
#include <complex>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -26,7 +26,7 @@
// @diff@ %-*.tst %*.txt
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
const char carray_01[] = "santa cruz or sandiego?";
const char carray_02[] = "memphis, new orleans, and savanah";

View File

@ -27,7 +27,7 @@
#include <cassert>
#include <unistd.h>
#include <fcntl.h>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// verify that std::filebuf doesn't close files that it didn't open
// when using the following std::filebuf ctor:

View File

@ -21,7 +21,7 @@
// 27.8.1.4 Overridden virtual functions
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -31,7 +31,7 @@
#include <cwchar> // for mbstate_t
#include <ios>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -21,7 +21,7 @@
// 27.8.1.13 member functions (fstream_members)
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void
redirect_buffer(std::ios& stream, std::streambuf* new_buf)

View File

@ -22,7 +22,7 @@
#include <istream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
const char name_01[] = "ifstream_members-1.tst";
const char name_02[] = "ifstream_members-1.txt";

View File

@ -22,7 +22,7 @@
#include <string>
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
const std::string str01("the nubians of plutonia");
std::string str02;

View File

@ -28,7 +28,7 @@
#include <sstream>
#include <iostream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// N.B. Once we have called sync_with_stdio(false), we can never go back.

View File

@ -23,7 +23,7 @@
#include <sstream>
#include <iostream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00413.html
void test01()

View File

@ -31,7 +31,7 @@
#include <ios>
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -31,7 +31,7 @@
#include <fstream>
#include <iostream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
class gnu_filebuf: public std::filebuf
{

View File

@ -31,7 +31,7 @@
#include <sstream>
#include <locale>
#include <iomanip>
#include <debug_assert.h>
#include <testsuite_hooks.h>
struct MyNP : std::numpunct<char>
{

View File

@ -31,7 +31,7 @@
#include <sstream>
#include <locale>
#include <iomanip>
#include <debug_assert.h>
#include <testsuite_hooks.h>
struct MyNP : std::numpunct<char>
{

View File

@ -31,7 +31,7 @@
#include <ios>
// NB: Don't include any other headers in this file.
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -25,7 +25,7 @@
#include <ostream>
#include <sstream>
#include <locale>
#include <debug_assert.h>
#include <testsuite_hooks.h>
std::string str_01;
std::string str_02("true false 0 1 110001");

View File

@ -22,7 +22,7 @@
#include <istream>
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01() {

View File

@ -25,7 +25,7 @@
#include <istream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// stringbufs.

View File

@ -23,7 +23,7 @@
#include <istream>
#include <sstream>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -26,7 +26,7 @@
#include <istream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01()
{

View File

@ -31,7 +31,7 @@
#include <istream>
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -26,7 +26,7 @@
#include <istream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
int
test01()

View File

@ -21,7 +21,7 @@
// 27.7.2.2 member functions (istringstream_members)
#include <sstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
void test01()
{

View File

@ -66,7 +66,7 @@
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// Include iostream last, just to make is as difficult as possible to
// properly initialize the standard iostream objects.

View File

@ -22,7 +22,7 @@
#include <ostream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
const char name_01[] = "ofstream_members-1.tst";
const char name_02[] = "ofstream_members-1.txt";

View File

@ -25,7 +25,7 @@
#include <locale>
#include <sstream>
#include <limits>
#include <debug_assert.h>
#include <testsuite_hooks.h>
using namespace std;

View File

@ -24,7 +24,7 @@
#include <ostream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
// ofstream
bool test01()

View File

@ -26,7 +26,7 @@
#include <ostream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
const int size = 1000;
const char name_01[] = "ostream_inserter_other-1.tst";

View File

@ -23,7 +23,7 @@
#include <ostream>
#include <sstream>
#include <stdexcept>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01(void)
{

View File

@ -23,7 +23,7 @@
#include <ostream>
#include <sstream>
#include <fstream>
#include <debug_assert.h>
#include <testsuite_hooks.h>
bool test01()

Some files were not shown because too many files have changed in this diff Show More