[ucsim-z80] Fix #3828: uCsim SM83 flags simulation
[sdcc.git] / sdcc / support / regression / fwk / lib / statics.c
blob55ae9df357bab4456c9821b8f0ca443e6eb42099
1 /* needed by tests/bug1477149.c */
3 static long long_1 = 1;
5 static long s_get_long_1(void)
7 long alfa = long_1;
8 long beta = long_1 + alfa;
9 long gamma = long_1 + beta;
10 return alfa + beta + gamma;
13 long get_long_1(void)
15 return s_get_long_1();
18 static float float_1 = 1;
20 static float s_get_float_1(void)
22 float alfa = float_1;
23 float beta = float_1 + alfa;
24 float gamma = float_1 + beta;
25 return alfa + beta + gamma;
28 float get_float_1(void)
30 return s_get_float_1();
33 /* for bug 3038028 */
34 static char s_get_indexed(char index, char *msg)
36 return msg[index];
39 char get_indexed(char index, char *msg)
41 return s_get_indexed(index, msg);