Skip to content

Commit 30cd3dd

Browse files
committed
[libcxx][test] Don't require Container<cv T> extension on non-libc++
... when testing `default_initializable`. Also, include `<memory>` for `unique_ptr`.
1 parent d8b3dc5 commit 30cd3dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libcxx/test/std/concepts/concept.default.init/default_initializable.compile.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <forward_list>
2121
#include <list>
2222
#include <map>
23+
#include <memory>
2324
#include <queue>
2425
#include <set>
2526
#include <span>
@@ -201,9 +202,11 @@ void test()
201202
test_not_const<std::array< volatile int, 1>>();
202203
test_false <std::array<const volatile int, 1>>();
203204
test_true <std::deque< int>>();
205+
#ifdef _LIBCPP_VERSION
204206
test_true <std::deque<const int>>();
205207
test_true <std::deque< volatile int>>();
206208
test_true <std::deque<const volatile int>>();
209+
#endif // _LIBCPP_VERSION
207210
test_true <std::forward_list<int>>();
208211
test_true <std::list<int>>();
209212
test_true <std::vector<int>>();
@@ -222,9 +225,11 @@ void test()
222225

223226
// Container adaptors
224227
test_true <std::stack< int>>();
228+
#ifdef _LIBCPP_VERSION
225229
test_true <std::stack<const int>>();
226230
test_true <std::stack< volatile int>>();
227231
test_true <std::stack<const volatile int>>();
232+
#endif // _LIBCPP_VERSION
228233
test_true <std::queue<int>>();
229234
test_true <std::priority_queue<int>>();
230235

0 commit comments

Comments
 (0)