diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-04-21 04:21:51 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-04-21 04:21:51 +0000 |
commit | d3e53108dde9a1c1826fbd227339bbc51a84909f (patch) | |
tree | fe0eb4f936e5ca763e147a1068b27c8c72c5b030 /libstdc++-v3/testsuite | |
parent | a94400fda31e4ac6cfa897141a4d14321fdb5fed (diff) | |
download | gcc-d3e53108dde9a1c1826fbd227339bbc51a84909f.zip gcc-d3e53108dde9a1c1826fbd227339bbc51a84909f.tar.gz gcc-d3e53108dde9a1c1826fbd227339bbc51a84909f.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/ext/bitmap_allocator/check_allocate_max_size.cc | 8 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc | 10 |
2 files changed, 16 insertions, 2 deletions
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 <ext/bitmap_allocator.h> #include <testsuite_allocator.h> +typedef int value_type; + int main() { - typedef int value_type; typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type; __gnu_test::check_allocate_max_size<allocator_type>(); return 0; } + +#if !__GXX_WEAK +// Explicitly instantiatiate for systems without weak symbols. +template class __gnu_cxx::bitmap_allocator<value_type>; +#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 <ext/bitmap_allocator.h> #include <testsuite_allocator.h> +typedef int value_type; + int main() { - typedef int value_type; typedef __gnu_cxx::bitmap_allocator<value_type> allocator_type; __gnu_test::check_deallocate_null<allocator_type>(); return 0; } + +#if !__GXX_WEAK +// Explicitly instantiatiate for systems without weak symbols. +template class __gnu_cxx::bitmap_allocator<value_type>; +#endif + + |