Skip to content

Commit 8cba02d

Browse files
committed
Readd test case I removed in b098d5f
1 parent 31337dd commit 8cba02d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/testother.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ class TestOther : public TestFixture {
264264
" cout << 42 / (float)0;\n"
265265
"}");
266266
ASSERT_EQUALS("", errout.str());
267+
268+
check("void foo() {\n"
269+
" cout << 42 / (int)0;\n"
270+
"}");
271+
TODO_ASSERT_EQUALS("[test.cpp:2]: (error) Division by zero.\n", "", errout.str());
267272
}
268273

269274
void zeroDiv2() {

0 commit comments

Comments
 (0)