Readd test case I removed in b098d5fbd6
This commit is contained in:
parent
31337dda27
commit
8cba02dc66
|
@ -264,6 +264,11 @@ private:
|
||||||
" cout << 42 / (float)0;\n"
|
" cout << 42 / (float)0;\n"
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("", errout.str());
|
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() {
|
void zeroDiv2() {
|
||||||
|
|
Loading…
Reference in New Issue