Readd test case I removed in b098d5fbd6

This commit is contained in:
Daniel Marjamäki 2016-12-11 21:24:12 +01:00
parent 31337dda27
commit 8cba02dc66
1 changed files with 5 additions and 0 deletions

View File

@ -264,6 +264,11 @@ private:
" cout << 42 / (float)0;\n"
"}");
ASSERT_EQUALS("", errout.str());
check("void foo() {\n"
" cout << 42 / (int)0;\n"
"}");
TODO_ASSERT_EQUALS("[test.cpp:2]: (error) Division by zero.\n", "", errout.str());
}
void zeroDiv2() {