We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d556a5 commit 9b1177dCopy full SHA for 9b1177d
libcxx/test/std/utilities/optional/optional.object/optional.object.dtor/dtor.pass.cpp
@@ -11,9 +11,9 @@
11
12
// ~optional();
13
14
+#include <cassert>
15
#include <optional>
16
#include <type_traits>
-#include <cassert>
17
18
#include "test_macros.h"
19
@@ -64,12 +64,12 @@ int main(int, char**)
64
}
65
assert(X::dtor_called == true);
66
67
-
+#if TEST_STD_VER >= 26
68
{
69
typedef int& T;
70
static_assert(std::is_trivially_destructible<T>::value, "");
71
static_assert(std::is_trivially_destructible<optional<T>>::value, "");
72
73
+#endif
74
return 0;
75
0 commit comments