Skip to content

Commit facac24

Browse files
committed
Address ldionne's comments
1 parent 3a220ac commit facac24

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/iter_swap.pass.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@
1919
#include "test_macros.h"
2020

2121
#if TEST_STD_VER > 17
22-
constexpr bool test_swap_constexpr() {
23-
int i = 1;
24-
int j = 2;
25-
std::iter_swap(&i, &j);
26-
return i == 2 && j == 1;
22+
constexpr bool test_swap_constexpr()
23+
{
24+
int i = 1;
25+
int j = 2;
26+
std::iter_swap(&i, &j);
27+
return i == 2 && j == 1;
2728
}
2829
#endif // TEST_STD_VER > 17
2930

30-
int main(int, char**) {
31-
int i = 1;
32-
int j = 2;
33-
std::iter_swap(&i, &j);
34-
assert(i == 2);
35-
assert(j == 1);
31+
int main(int, char**)
32+
{
33+
int i = 1;
34+
int j = 2;
35+
std::iter_swap(&i, &j);
36+
assert(i == 2);
37+
assert(j == 1);
3638

3739
#if TEST_STD_VER > 17
38-
static_assert(test_swap_constexpr());
40+
static_assert(test_swap_constexpr());
3941
#endif // TEST_STD_VER > 17
4042

4143
return 0;

0 commit comments

Comments
 (0)