source: CIVL/examples/languageFeatures/noopBad.cvl@ e275f74

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

cleaned up Statement List; fixed the translation of expression statement, added a test to check errors of an expression.

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

  • Property mode set to 100644
File size: 144 bytes
Line 
1#include <civlc.cvh>
2
3$input int n;
4
5int main(){
6 int a[10];
7
8 a[0] = 1;
9 //a[10];//array index out of bound
10 a[0]/n; // division by zero
11}
Note: See TracBrowser for help on using the repository browser.