struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-920429-1.c
blob18b78fae5772a7c9d6604c14b286eba64b3e7348
1 /*
2 920429-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
6 #pragma disable_warning 196
8 #ifdef __SDCC
9 #pragma std_c99
10 #endif
12 typedef unsigned char t;int i,j;
13 t*f(const t*p){t c;c=*p++;i=((c&2)?1:0);j=(c&7)+1;return p;}
15 void
16 testTortureExecute (void){const t*p0="ab",*p1;p1=f(p0);if(p0+1!=p1)ASSERT(0);return;}