parent
b211139dbd
commit
cdc34fe92f
|
@ -645,6 +645,15 @@ private:
|
|||
" v[i] = 1;\n"
|
||||
"}\n");
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue