summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-920909-1.c
blob: e43b7c82b8907e3a3b702dddc2f606dc87e9588d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
   920909-1.c from the execute part of the gcc torture suite.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int f(int a){switch(a){case 0x402:return a+1;case 0x403:return a+2;case 0x404:return a+3;case 0x405:return a+4;case 0x406:return 1;case 0x407:return 4;}return 0;}
void
testTortureExecute (void){if(f(1))ASSERT(0);return;}