source: CIVL/mods/dev.civl.abc/examples/c/switches.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: 280 bytes
Line 
1int x = 0;
2int main() {
3 switch(x) {
4 case 0:
5 x++;
6 // fall through
7 case 1: x--;
8 x = 42;
9 break;
10 case 3:
11 case 5:
12 case 7: x = 0;
13 break;
14 default: x=42;
15 }
16
17 x = 1;
18
19 switch(x+1) {}
20
21 x = 2;
22}
Note: See TracBrowser for help on using the repository browser.