Skip to content

Commit 87eac7a

Browse files
Update testuninitvar.cpp
1 parent 91941c2 commit 87eac7a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/testuninitvar.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6788,6 +6788,12 @@ class TestUninitVar : public TestFixture {
67886788
" return a[0];\n"
67896789
"}\n");
67906790
ASSERT_EQUALS("", errout_str());
6791+
6792+
valueFlowUninit("std::vector<int> f() {\n" // #15077
6793+
" const std::vector<int> a[1];\n"
6794+
" return a[0];\n"
6795+
"}\n");
6796+
ASSERT_EQUALS("", errout_str());
67916797
}
67926798

67936799
void valueFlowUninitBreak() { // Do not show duplicate warnings about the same uninitialized value

0 commit comments

Comments
 (0)