Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 19, 2024
1 parent 436ee7b commit 854a4d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3933,7 +3933,9 @@ class TestOther : public TestFixture {
" continue;\n"
" }\n"
"}\n");
ASSERT_EQUALS("[test.cpp:5]: (style) Variable 's' can be declared as reference to const\n", errout_str()); // don't crash
ASSERT_EQUALS("[test.cpp:7]: (style) 'continue' is redundant since it is the last statement in a loop.\n"
"[test.cpp:5]: (style) Variable 's' can be declared as reference to const\n",
errout_str()); // don't crash

check("void f(int& i) {\n"
" new (&i) int();\n"
Expand Down

0 comments on commit 854a4d8

Please sign in to comment.