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
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-pr48717.c
blob
d0745e4b9433507a5d6f2785b66dfc7e291ab5ea
1
/*
2
pr48717.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
/* PR tree-optimization/48717 */
12
13
int
v
=
1
,
w
;
14
15
unsigned short
16
foo
(
unsigned short
x
,
unsigned short
y
)
17
{
18
return
x
+
y
;
19
}
20
21
void
22
bar
(
void
)
23
{
24
v
=
foo
(~
w
,
w
);
25
}
26
27
void
28
testTortureExecute
(
void
)
29
{
30
bar
();
31
if
(
v
!= (
unsigned short
) -
1
)
32
ASSERT
(
0
);
33
return
;
34
}
35