From d3e53108dde9a1c1826fbd227339bbc51a84909f Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Thu, 21 Apr 2005 04:21:51 +0000 Subject: [PATCH] check_allocate_max_size.cpp: Add explicit instantiations for systems without weak symbols. * testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add explicit instantiations for systems without weak symbols. * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: Likewise. From-SVN: r98486 --- libstdc++-v3/ChangeLog | 7 +++++++ .../testsuite/ext/bitmap_allocator/check_allocate_max_size.cc | 8 +++++++- .../testsuite/ext/bitmap_allocator/check_deallocate_null.cc | 10 +++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9bd78ce..0853f49 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2005-04-20 Mark Mitchell + + * testsuite/ext/bitmap_allocator/check_allocate_max_size.cpp: Add + explicit instantiations for systems without weak symbols. + * testsuite/ext/bitmap_allocator/check_deallocate_null.cc: + Likewise. + 2005-04-18 Jonathan Wakely * include/bits/stl_algo.h (rotate_copy): Add missing std qualification. diff --git a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc index 442b91d..3784375 100644 --- a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc +++ b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc @@ -22,10 +22,16 @@ #include #include +typedef int value_type; + int main() { - typedef int value_type; typedef __gnu_cxx::bitmap_allocator allocator_type; __gnu_test::check_allocate_max_size(); return 0; } + +#if !__GXX_WEAK +// Explicitly instantiatiate for systems without weak symbols. +template class __gnu_cxx::bitmap_allocator; +#endif diff --git a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc index ebe8114..9d7ae98 100644 --- a/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc +++ b/libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc @@ -22,10 +22,18 @@ #include #include +typedef int value_type; + int main() { - typedef int value_type; typedef __gnu_cxx::bitmap_allocator allocator_type; __gnu_test::check_deallocate_null(); return 0; } + +#if !__GXX_WEAK +// Explicitly instantiatiate for systems without weak symbols. +template class __gnu_cxx::bitmap_allocator; +#endif + + -- 2.7.4