Added test cases from the bug list
[fw/sdcc] / support / regression / tests / bug-426632.c
1 /* bug-436632.c
2    PENDING
3 */
4 #include <testfwk.h>
5
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; 
11
12 unsigned char year; 
13 unsigned char month; 
14 unsigned char day; 
15
16 void *__main()
17
18     float i; 
19     float y; 
20     void *p; 
21     DATE_STRUCT d; 
22     DATE_STRUCT *date_ptr; 
23    
24     date_ptr = &d; 
25    
26     year = date_ptr->year; 
27     month = date_ptr->month; 
28     day = date_ptr->day; 
29    
30     i = 1.35; 
31     i += 2; 
32     y = 1; 
33     y = y+i; 
34     i = y; 
35     p = &y; 
36     return p; 
37