Commit ce2e68e 1 parent 31e0f3e commit ce2e68e Copy full SHA for ce2e68e
File tree 2 files changed +4
-18
lines changed
2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,8 @@ TEST_SUITE("mutex") {
13
13
static_assert (!std::is_move_assignable_v<mutex<int >>);
14
14
15
15
TEST_CASE (" defalt ctor" ) {
16
- { // normal init
17
- mutex<int > mut{};
18
- CHECK_EQ (*mut.lock (), 0 );
19
- }
20
-
21
- { // constexpr init
22
- static constinit mutex<int > cmut{};
23
- CHECK_EQ (*cmut.lock (), 0 );
24
- }
16
+ mutex<int > mut{};
17
+ CHECK_EQ (*mut.lock (), 0 );
25
18
}
26
19
27
20
TEST_CASE (" copy value inside" ) {
Original file line number Diff line number Diff line change @@ -13,15 +13,8 @@ TEST_SUITE("shared_mutex") {
13
13
static_assert (!std::is_move_assignable_v<shared_mutex<int >>);
14
14
15
15
TEST_CASE (" defalt ctor" ) {
16
- { // normal init
17
- shared_mutex<int > mut{};
18
- CHECK_EQ (*mut.lock (), 0 );
19
- }
20
-
21
- { // constexpr init
22
- static constinit shared_mutex<int > cmut{};
23
- CHECK_EQ (*cmut.lock (), 0 );
24
- }
16
+ shared_mutex<int > mut{};
17
+ CHECK_EQ (*mut.lock (), 0 );
25
18
}
26
19
27
20
TEST_CASE (" copy value inside" ) {
You can’t perform that action at this time.
0 commit comments