struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020118-1.c
blob4b106b9995122d85fc08caee29387e97d82c0e6d
1 /*
2 20020118-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* This tests an insn length of sign extension on h8300 port. */
13 volatile signed char *q;
14 volatile signed int n;
16 void
17 foo (void)
19 signed char *p;
21 for (;;)
23 p = (signed char *) q; n = p[2];
24 p = (signed char *) q; n = p[2];
25 p = (signed char *) q; n = p[2];
26 p = (signed char *) q; n = p[2];
27 p = (signed char *) q; n = p[2];
28 p = (signed char *) q; n = p[2];
29 p = (signed char *) q; n = p[2];
30 p = (signed char *) q; n = p[2];
31 p = (signed char *) q; n = p[2];
32 p = (signed char *) q; n = p[2];
33 p = (signed char *) q; n = p[2];
37 void
38 testTortureExecute (void)