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
/
gcc-torture-execute-pr89826.c
blob
91a912efea0a8d2d79342a02d2cb915cd67eadef
1
/*
2
pr89826.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
typedef
unsigned int
u32
;
8
typedef
unsigned long long
u64
;
9
u64 a
;
10
u32 b
;
11
12
u64
13
foo
(
u32 d
)
14
{
15
a
-=
d
?
0
: ~
a
;
16
return
a
+
b
;
17
}
18
19
void
20
testTortureExecute
(
void
)
21
{
22
u64 x
=
foo
(
2
);
23
if
(
x
!=
0
)
24
ASSERT
(
0
);
25
return
;
26
}
27