From b69c5b98713fb969ed756a20747fce9c03ec6b74 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:40:45 +0200 Subject: [PATCH] Update testuninitvar.cpp --- test/testuninitvar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index 8f06b06a1bb..6aeb223a619 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -6549,8 +6549,10 @@ class TestUninitVar : public TestFixture { " std::array b;\n" " auto it = b.begin();\n" " *it = 0;\n" + " std::array c;\n" + " return c.front();\n" "}\n"); - ASSERT_EQUALS("", errout_str()); + ASSERT_EQUALS("[test.cpp:8]: (error) Uninitialized variable: c\n", errout_str()); } void valueFlowUninitBreak() { // Do not show duplicate warnings about the same uninitialized value