Skip to content

Commit

Permalink
Update testvalueflow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jan 3, 2025
1 parent 029eae7 commit 07771b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testvalueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7350,6 +7350,11 @@ class TestValueFlow : public TestFixture {
" int j;\n"
"};\n";
(void)valueOfTok(code, "B");

code = "void f(int& r) {\n" // #13515
" [0].p = &r;\n"
"}\n";
(void)valueOfTok(code, "=");
}

void valueFlowCrash() {
Expand Down

0 comments on commit 07771b6

Please sign in to comment.