Crash: Add regression test

This commit is contained in:
Daniel Marjamäki 2020-10-22 07:39:57 +02:00
parent 33844b28ab
commit 47914b9960
1 changed files with 8 additions and 0 deletions

View File

@ -3838,6 +3838,14 @@ private:
" }\n"
"}\n");
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() {