source: CIVL/mods/dev.civl.abc/examples/c/assigns.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

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

  • Property mode set to 100644
File size: 258 bytes
Line 
1int f(int x, int y){
2 return x+y;
3}
4
5typedef struct point_t{
6 const int x;
7 int y;
8}point;
9
10$input int X;
11
12int main(){
13 point a;
14
15 X=10;//an error should be reported
16 89=9;//an error should be reported
17 a=(point){8, 9};//an error should be reported
18}
Note: See TracBrowser for help on using the repository browser.