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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-20040823-1.c
blob
800c5ed29175f6821b77a1ed865c50fe2f9afa63
1
/*
2
20040823-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
/* Ensure that we create VUSE operands also for noreturn functions. */
12
13
#include <stdlib.h>
14
#include <string.h>
15
16
int
*
pwarn
;
17
18
void
bla
(
void
);
19
20
void
bla
(
void
)
21
{
22
if
(!*
pwarn
)
23
ASSERT
(
0
);
24
25
return
;
26
}
27
28
void
testTortureExecute
(
void
)
29
{
30
int
warn
;
31
32
memset
(&
warn
,
0
,
sizeof
(
warn
));
33
34
pwarn
= &
warn
;
35
36
warn
=
1
;
37
38
bla
();
39
}
40