source: src/Clight/test/badconditional.c

Last change on this file was 2576, checked in by campbell, 7 years ago

Add conditional test case that also uses switch removal.

File size: 173 bytes
Line 
1int f(int z) {
2  char x = 2;
3  int y = 1;
4  switch (z?x:y) {
5  case 1 : return 5;
6  case 2: return 10;
7  default: return 0;
8  }
9}
10
11int main (void) {
12  return f(0) + f(1);
13}
Note: See TracBrowser for help on using the repository browser.