Crash: Add regression test
This commit is contained in:
parent
33844b28ab
commit
47914b9960
|
@ -3838,6 +3838,14 @@ private:
|
||||||
" }\n"
|
" }\n"
|
||||||
"}\n");
|
"}\n");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
// do not crash
|
||||||
|
check("void assign(const MMA& other) {\n"
|
||||||
|
" if (mPA.cols != other.mPA.cols || mPA.rows != other.mPA.rows)\n"
|
||||||
|
" ;\n"
|
||||||
|
" if (other.mPA.cols > 0 && other.mPA.rows > 0)\n"
|
||||||
|
" ;\n"
|
||||||
|
"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkInvalidTestForOverflow() {
|
void checkInvalidTestForOverflow() {
|
||||||
|
|
Loading…
Reference in New Issue