Skip to content

Commit 9434cd7

Browse files
Update testuninitvar.cpp
1 parent f7aa6bc commit 9434cd7

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
@@ -7935,6 +7935,12 @@ class TestUninitVar : public TestFixture {
79357935
" (*fp[0])();\n"
79367936
"}");
79377937
ASSERT_EQUALS("", errout_str());
7938+
7939+
checkUninitVar("void f() {\n" // #14708
7940+
" int a[1], b[1];\n"
7941+
" int* c[2]{ a, b };\n"
7942+
"}");
7943+
ASSERT_EQUALS("", errout_str());
79387944
}
79397945

79407946
void isVariableUsageDerefValueflow()

0 commit comments

Comments
 (0)