Skip to content

Commit 36bffce

Browse files
committed
Inline test
1 parent a7d789a commit 36bffce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ struct DestroyLast {
1919

2020
static std::__no_destroy<int> nd_int(5);
2121

22-
void test() { last.ptr = &nd_int.__get(); }
23-
2422
int main(int, char**) {
25-
test();
23+
last.ptr = &nd_int.__get();
2624

2725
return 0;
2826
}
27+
2928
#if TEST_STD_VER > 17
3029
// Test constexpr-constructibility.
3130
constinit std::__no_destroy<int> nd_int_const(std::__uninitialized_tag{});

0 commit comments

Comments
 (0)