Skip to content

Commit 9d97dfe

Browse files
committed
Make freestanding test work
1 parent ddbc306 commit 9d97dfe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/beman/inplace_vector/freestanding.test.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ TYPED_TEST_SUITE(Freestanding, IVAllTypes);
1010

1111
TYPED_TEST(Freestanding, alltypes) {
1212

13+
#if !BEMAN_INPLACE_VECTOR_FREESTANDING_DELETED
14+
15+
GTEST_SKIP() << "Not applicable";
16+
17+
#else
18+
1319
using IV = TestFixture::IV;
1420
using T = TestFixture::T;
1521
using size_type = IV::size_type;
@@ -31,5 +37,7 @@ TYPED_TEST(Freestanding, alltypes) {
3137
static_assert(!requires(IV vec, size_type t) { vec.reserve(t); });
3238

3339
// TODO make sure all of the freestanding-delete functions are deleted
40+
41+
#endif
3442
}
3543
} // namespace

0 commit comments

Comments
 (0)