Skip to content

Commit 8a00644

Browse files
author
Maris Usis
committed
update test
1 parent 1de35fb commit 8a00644

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎test/testother.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,12 @@ class TestOther : public TestFixture {
911911
"}\n",
912912
dinit(CheckOptions, $.cpp = false, $.settings = &settings));
913913
ASSERT_EQUALS("", errout_str());
914+
915+
check("unsigned int f(unsigned int t) {\n"
916+
" return t / (unsigned int)65536;\n"
917+
"}\n",
918+
dinit(CheckOptions, $.cpp = false, $.settings = &settings));
919+
ASSERT_EQUALS("[test.c:2:14]: (error) Division by zero. [zerodiv]\n", errout_str());
914920
}
915921

916922
void nanInArithmeticExpression() {

0 commit comments

Comments
 (0)