Skip to content

Commit cdc34fe

Browse files
Add test for #10025 (#3570)
1 parent b211139 commit cdc34fe

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/teststl.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,15 @@ class TestStl : public TestFixture {
645645
" v[i] = 1;\n"
646646
"}\n");
647647
ASSERT_EQUALS("", errout.str());
648+
649+
checkNormal("void g(const char *, ...) { exit(1); }\n" // #10025
650+
"void f(const char c[]) {\n"
651+
" std::vector<int> v = get();\n"
652+
" if (v.empty())\n"
653+
" g(\"\", c[0]);\n"
654+
" return h(&v[0], v.size()); \n"
655+
"}\n");
656+
ASSERT_EQUALS("", errout.str());
648657
}
649658

650659
void outOfBoundsSymbolic()

0 commit comments

Comments
 (0)