Skip to content

Commit

Permalink
Update testother.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 17, 2024
1 parent 47255f4 commit 5b1b54d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10192,8 +10192,9 @@ class TestOther : public TestFixture {
" int b = a;\n"
" int c = 1;\n"
" a = b;\n"
" return a * b * c;\n");
ASSERT_EQUALS("[test.cpp:2]: (portability) Passing NULL after the last typed argument to a variadic function leads to undefined behaviour.\n", errout_str());
" return a * b * c;\n"
"}\n");
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:5]: (style) Variable 'a' is assigned an expression that holds the same value.\n", errout_str());
}

void varFuncNullUB() { // #4482
Expand Down

0 comments on commit 5b1b54d

Please sign in to comment.