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
/
bug1337835.c
1
/*
2
bug1337835.c
3
*/
4
5
#include <testfwk.h>
6
#include <stdbool.h>
7
8
#ifndef BOOL
9
#define BOOL bool
10
#endif
11
12
char e;
13
14
void foo (unsigned long ul, BOOL b, char c) REENTRANT
15
{
16
if (b && (long) ul < 0)
17
e = 0;
18
if (ul && b && c)
19
e = 1;
20
}
21
22
void
23
test_1337835(void)
24
{
25
e = 2;
26
foo(0, 1, 0);
27
ASSERT( e == 2 );
28
}