libstdc++-v3/testsuite/20_util/tuple/cons/114147.cc
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | // PR libstdc++/114147 |
| 4 | // tuple allocator-extended ctor requires non-explicit default ctor |
| 5 | |
| 6 | #include <tuple> |
| 7 | #include <memory> |
| 8 | |
| 9 | struct X { explicit X(); }; |
| 10 | |
| 11 | std::allocator<int> a; |
| 12 | std::tuple<X> t0(std::allocator_arg, a); |
| 13 | std::tuple<int, X> t1(std::allocator_arg, a); |
| 14 | std::tuple<X, int> t2(std::allocator_arg, a); |
| 15 | std::tuple<int, X, int> t3(std::allocator_arg, a); |