Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed May 10, 2024
1 parent c296c8d commit 6cf4be9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testleakautovar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,13 +625,13 @@ class TestLeakAutoVar : public TestFixture {
check("void f(int*& x) {\n" // #8235
" int* p = (int*)malloc(10);\n"
" x = p ? p : nullptr;\n"
"}", true);
"}", true);
ASSERT_EQUALS("", errout_str());

check("void f(int*& x) {\n"
" int* p = (int*)malloc(10);\n"
" x = p != nullptr ? p : nullptr;\n"
"}", true);
"}", true);
ASSERT_EQUALS("", errout_str());
}

Expand Down

0 comments on commit 6cf4be9

Please sign in to comment.