diff options
Diffstat (limited to 'libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc')
-rw-r--r-- | libstdc++-v3/testsuite/ext/bitmap_allocator/check_deallocate_null.cc | 10 |
1 files changed, 9 insertions, 1 deletions
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 ebe8114793b..9d7ae98dce0 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 + + |