source: CIVL/examples/languageFeatures/divisionByZero.cvl@ ac11fb1

1.23 2.0 main test-branch
Last change on this file since ac11fb1 was ea00acb, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

improved the message for division-by-zero error, adding the divisor's value.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2576 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 88 bytes
Line 
1#include<civlc.cvh>
2
3$input int X;
4
5int main(void){
6 int a=10/X;
7
8 $assert(a != 0);
9}
Note: See TracBrowser for help on using the repository browser.