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() {