Skip to content

Commit 9b1177d

Browse files
committed
Forgot to gate a test
1 parent 9d556a5 commit 9b1177d

File tree

1 file changed

+3
-3
lines changed
  • libcxx/test/std/utilities/optional/optional.object/optional.object.dtor

1 file changed

+3
-3
lines changed

libcxx/test/std/utilities/optional/optional.object/optional.object.dtor/dtor.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
// ~optional();
1313

14+
#include <cassert>
1415
#include <optional>
1516
#include <type_traits>
16-
#include <cassert>
1717

1818
#include "test_macros.h"
1919

@@ -64,12 +64,12 @@ int main(int, char**)
6464
}
6565
assert(X::dtor_called == true);
6666
}
67-
67+
#if TEST_STD_VER >= 26
6868
{
6969
typedef int& T;
7070
static_assert(std::is_trivially_destructible<T>::value, "");
7171
static_assert(std::is_trivially_destructible<optional<T>>::value, "");
7272
}
73-
73+
#endif
7474
return 0;
7575
}

0 commit comments

Comments
 (0)