projects
/
debian
/
cc1111
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 2.9.0
[debian/cc1111]
/
support
/
regression
/
tests
/
bug1745717.c
1
/*
2
bug1745717.c
3
*/
4
5
#include <testfwk.h>
6
#include <stdbool.h>
7
8
#ifdef __bool_true_false_are_defined
9
10
bool and1(char arg)
11
{
12
return arg & 1;
13
}
14
15
bool and2(char arg)
16
{
17
return 1 & arg;
18
}
19
20
#endif //__bool_true_false_are_defined
21
22
23
void
24
testBug(void)
25
{
26
#ifdef __bool_true_false_are_defined
27
ASSERT(!and1(0x00));
28
ASSERT( and1(0x01));
29
ASSERT(!and2(0x00));
30
ASSERT( and2(0x01));
31
#endif //__bool_true_false_are_defined
32
}