3 A bug in inlining of reentrant functions into nonreentrant functions in the mcs51 backend.
10 inline uint8_t test(uintptr_t addr
) __reentrant
12 return *(volatile uint8_t __xdata
*)(addr
);
18 void call(void) /* Unbalanced stack pointer in this function */
20 dat2
= test((uintptr_t)(&dat1
));
27 ASSERT (dat2
== 0x5a);
30 extern uint8_t test(uintptr_t addr
) __reentrant
;