This commit is contained in:
chrchr-github 2021-11-20 08:53:18 +01:00 committed by GitHub
parent b211139dbd
commit cdc34fe92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -645,6 +645,15 @@ private:
" v[i] = 1;\n" " v[i] = 1;\n"
"}\n"); "}\n");
ASSERT_EQUALS("", errout.str()); ASSERT_EQUALS("", errout.str());
checkNormal("void g(const char *, ...) { exit(1); }\n" // #10025
"void f(const char c[]) {\n"
" std::vector<int> v = get();\n"
" if (v.empty())\n"
" g(\"\", c[0]);\n"
" return h(&v[0], v.size()); \n"
"}\n");
ASSERT_EQUALS("", errout.str());
} }
void outOfBoundsSymbolic() void outOfBoundsSymbolic()