diff options
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc b/libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc index eb444f76cbe..85e43c9c16f 100644 --- a/libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc +++ b/libstdc++-v3/testsuite/20_util/tuple/cons/allocators.cc @@ -181,9 +181,23 @@ void test02() test_type empty = make_tuple(); } +void test03() +{ + struct dr2586 + { + using allocator_type = std::allocator<int>; + dr2586(std::allocator_arg_t, allocator_type&&) { } + dr2586(const allocator_type&) { } + }; + + const dr2586::allocator_type a; + std::tuple<dr2586> t{std::allocator_arg, a}; +} + int main() { test01(); test02(); + test03(); return 0; } |