To test the condition, I created new uVision project with default settings and compiled the following code:
bit bit1, bit2 = 1; int i; __inline bit getbit(void) { return bit2; } void main(void) { int a[1]; bit1 = getbit(); i = a[0]; }