From 07771b65e4b69a1c62fdf4b11d86e76fd5a42359 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:27:15 +0100 Subject: [PATCH] Update testvalueflow.cpp --- test/testvalueflow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index 0b8a28bacc7..0cc2eb04ae5 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -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() {