Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / bug1717305.c
1 /*
2     bug 1717305
3 */
4
5 #include <testfwk.h>
6
7 #ifdef SDCC
8 #pragma std_sdcc99
9 #endif
10
11 static inline int f(const int a)
12 {
13         return (a + 3);
14 }
15
16 int g(int b)
17 {
18         return (f(b));
19 }
20
21 void
22 testBug(void)
23 {
24     int x = 0;
25     ASSERT (g(x) == 3);
26 }