blob: 9a06ac36ab37f227b9532e574ecbe4cf3163f510 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
bug1546986.c
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_sdcc99
#endif
#include <stdbool.h>
#ifdef __bool_true_false_are_defined
static unsigned char __pdata tst1 = 0x01;
static unsigned char __pdata tst2 = 0x00;
static bool test;
#endif //__bool_true_false_are_defined
void
testBug (void)
{
#ifdef __bool_true_false_are_defined
test = (tst1 | tst2);
ASSERT (test);
test = (tst2 | tst1);
ASSERT (test);
#endif //__bool_true_false_are_defined
}
|