Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug1864577.c
1 /*
2     bug 1864577
3 */
4
5 #include <testfwk.h>
6
7 #ifdef SDCC
8 #pragma std_sdcc99
9 #endif
10
11 typedef unsigned char uint8_t;
12
13 typedef uint8_t error_t  ;
14
15 enum __nesc_unnamed4247 {
16   SUCCESS = 0, 
17   FAIL = 1, 
18   ESIZE = 2, 
19   ECANCEL = 3, 
20   EOFF = 4, 
21   EBUSY = 5, 
22   EINVAL = 6, 
23   ERETRY = 7, 
24   ERESERVE = 8, 
25   EALREADY = 9
26 };
27
28 static inline   error_t PlatformP__LedsInit__default__init(void) {
29   return SUCCESS;
30 }
31
32 static  error_t PlatformP__LedsInit__init(void);
33 static inline  error_t PlatformP__LedsInit__init(void){
34   unsigned char result;
35
36   result = PlatformP__LedsInit__default__init();
37
38   return result;
39 }
40
41 void
42 testBug(void)
43 {
44   ASSERT (PlatformP__LedsInit__init() == SUCCESS);
45 }