Skip to content

Commit 2a4d746

Browse files
committed
reorder test
1 parent 3101c5d commit 2a4d746

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

libcxx/test/libcxx/utilities/no_destroy.pass.cpp

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

1212
#include "test_macros.h"
1313

14+
#if TEST_STD_VER > 17
15+
// Test constexpr-constructibility.
16+
constinit std::__no_destroy<int> nd_int_const(std::__uninitialized_tag{});
17+
#endif
18+
1419
struct DestroyLast {
1520
~DestroyLast() { assert(*ptr == 5); }
1621

@@ -24,9 +29,3 @@ int main(int, char**) {
2429

2530
return 0;
2631
}
27-
28-
#if TEST_STD_VER > 17
29-
// Test constexpr-constructibility.
30-
constinit std::__no_destroy<int> nd_int_const(std::__uninitialized_tag{});
31-
#endif
32-

0 commit comments

Comments
 (0)