diff --git a/test/testvalueflow.cpp b/test/testvalueflow.cpp index e560ede0e46..cd70aada98f 100644 --- a/test/testvalueflow.cpp +++ b/test/testvalueflow.cpp @@ -6857,16 +6857,16 @@ class TestValueFlow : public TestFixture { ASSERT_EQUALS(false, testValueOfXKnown(code, 9U, 1)); code = "int f(std::vector& v) {\n" - " std::vector o = v;\n" - " v.clear();\n" - " for (int i : o) {\n" - " if (i == 1) {\n" - " v.push_back(0);\n" - " }\n" - " }\n" - " auto x = v.empty();\n" - " return x;\n" - "}\n"; + " std::vector o = v;\n" + " v.clear();\n" + " for (int i : o) {\n" + " if (i == 1) {\n" + " v.push_back(0);\n" + " }\n" + " }\n" + " auto x = v.empty();\n" + " return x;\n" + "}\n"; ASSERT_EQUALS(false, testValueOfXKnown(code, 10U, 1)); }