Add regression test for #8923 (#2348)

This was fixed in 5a32d2d017. Add a regression test
with array arguments.
This commit is contained in:
Rikard Falkeborn 2019-11-11 07:15:24 +01:00 committed by Daniel Marjamäki
parent 5bf53cc2b4
commit af170c8e3f
1 changed files with 7 additions and 0 deletions

View File

@ -683,6 +683,13 @@ private:
" if ((char *)data != stack) free (data);\n"
"}\n");
ASSERT_EQUALS("", errout.str());
// #8923
check("void f(char **args1, char *args2[]) {\n"
" free((char **)args1);\n"
" free((char **)args2);\n"
"}");
ASSERT_EQUALS("", errout.str());
}
void testinvaliddealloc_C() {