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-20020611-1.c
blob
e2238114960e84778e8da67158d4a798d6ecceab
1
/*
2
20020611-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
/* PR target/6997. Missing (set_attr "cc" "none") in sleu pattern in
12
cris.md. Testcase from hp@axis.com. */
13
14
int
p
;
15
int
k
;
16
unsigned int
n
;
17
18
void
x
()
19
{
20
unsigned int
h
;
21
22
h
=
n
<=
30
;
23
if
(
h
)
24
p
=
1
;
25
else
26
p
=
0
;
27
28
if
(
h
)
29
k
=
1
;
30
else
31
k
=
0
;
32
}
33
34
unsigned int
n
=
30
;
35
36
void
37
testTortureExecute
(
void
)
38
{
39
x
();
40
if
(
p
!=
1
||
k
!=
1
)
41
ASSERT
(
0
);
42
return
;
43
}