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-pr79388.c
blob
a2d6fe2cad318f3b1a05362bcb0070d152953c55
1
/*
2
pr79388.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 rtl-optimization/79388 */
12
/* { dg-additional-options "-fno-tree-coalesce-vars" } */
13
14
unsigned int
a
,
c
;
15
16
unsigned int
17
foo
(
unsigned int
p
)
18
{
19
p
|=
1
;
20
p
&=
0xfffe
;
21
p
%=
0xffff
;
22
c
=
p
;
23
return
a
+
p
;
24
}
25
26
void
27
testTortureExecute
(
void
)
28
{
29
int
x
=
foo
(
6
);
30
if
(
x
!=
6
)
31
ASSERT
(
0
);
32
return
;
33
}