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-20020716-1.c
blob
130e87f5c6f833f51d9f3e58ae0de71688701e8d
1
/*
2
20020716-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
sub1
(
int
val
)
12
{
13
return
val
;
14
}
15
16
int
testcond
(
int
val
)
17
{
18
int
flag1
;
19
20
{
21
int
t1
=
val
;
22
{
23
int
t2
=
t1
;
24
{
25
flag1
=
sub1
(
t2
) ==
0
;
26
goto
lab1
;
27
};
28
}
29
lab1
: ;
30
}
31
32
if
(
flag1
!=
0
)
33
return
0x4d0000
;
34
else
35
return
0
;
36
}
37
38
void
testTortureExecute
(
void
)
39
{
40
if
(
testcond
(
1
))
41
ASSERT
(
0
);
42
return
;
43
}
44