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-950929-1.c
blob
a72d7b662e9fe99b60c0c9c266e80fbd8d384aa5
1
/*
2
950929-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
#pragma disable_warning 85
10
#endif
11
12
int
f
(
char
*
p
) { }
13
14
void
15
testTortureExecute
(
void
)
16
{
17
char
c
;
18
char
c2
;
19
int
i
=
0
;
20
char
*
pc
= &
c
;
21
char
*
pc2
= &
c2
;
22
int
*
pi
= &
i
;
23
24
*
pc2
=
1
;
25
*
pi
=
1
;
26
*
pc2
&= *
pi
;
27
f
(
pc2
);
28
*
pc2
=
1
;
29
*
pc2
&= *
pi
;
30
if
(*
pc2
!=
1
)
31
ASSERT
(
0
);
32
return
;
33
}
34