Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / bug-426632.c
blob5a89547065abdfdb3eaf87873a11a937dd8bb93b
1 /* bug-436632.c
2 PENDING
3 */
4 #include <testfwk.h>
6 typedef struct {
7 unsigned char year; /* Current year (with offset 1900) */
8 unsigned char month; /* Month (1 = Jan., ..., 12 = Dec.) */
9 unsigned char day; /* Day of month (1 to 31) */
10 } DATE_STRUCT;
12 unsigned char year;
13 unsigned char month;
14 unsigned char day;
16 void *__main()
18 float i;
19 float y;
20 void *p;
21 DATE_STRUCT d;
22 DATE_STRUCT *date_ptr;
24 date_ptr = &d;
26 year = date_ptr->year;
27 month = date_ptr->month;
28 day = date_ptr->day;
30 i = 1.35;
31 i += 2;
32 y = 1;
33 y = y+i;
34 i = y;
35 p = &y;
36 return p;
39 void testBug(void)