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-pr60072.c
blob
9971761a0275183a132d969ac21bcce0deef6cb6
1
/*
2
pr60072.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 target/60072 */
12
13
int
c
=
1
;
14
15
static int
*
foo
(
int
*
p
)
16
{
17
return
p
;
18
}
19
20
int
21
m
()
22
{
23
*
foo
(&
c
) =
2
;
24
return
c
-
2
;
25
}
26
27
void
28
testTortureExecute
(
void
)
29
{
30
m
();
31
}
32