repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
bug-2804.c
blob
70f0f750e9718b9ad84aba81cbbc947c2362377a
1
/*
2
bug-2804.c
3
*/
4
5
#include <testfwk.h>
6
7
#include <limits.h>
8
#include <stdbool.h>
9
10
volatile
unsigned long long
a
;
11
12
unsigned long long
f
(
_Bool c
)
13
{
14
if
(
c
)
15
return
(
a
+ (
ULLONG_MAX
-
2
));
16
else
17
return
(
a
+ (
ULLONG_MAX
-
3
));
18
}
19
20
void
testBug
(
void
)
21
{
22
a
=
0
;
23
ASSERT
(
f
(
true
) !=
f
(
false
));
24
}
25