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-20020328-1.c
blob
934c91167192a56499d3427d2c29f67d5800d7d2
1
/*
2
20020328-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
int
b
=
0
;
12
13
void
14
func
(
void
) { }
15
16
void
17
tryit
(
int
x
)
18
{
19
ASSERT
(
x
==
20
);
20
}
21
22
void
23
testTortureExecute
(
void
)
24
{
25
int
a
=
0
;
26
27
if
(
b
)
28
func
();
29
30
/* simplify_and_const_int would incorrectly omit the mask in
31
the line below. */
32
tryit
((
a
+
23
) &
0xfffffffc
);
33
return
;
34
}