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
/
qct
/
0038-ptradd.c
blob
a3539460fa52cde105c30293c367ee9334ffb34a
1
int
2
main
()
3
{
4
int
x
[
2
];
5
int
*
p
;
6
7
x
[
1
] =
7
;
8
p
= &
x
[
0
];
9
p
=
p
+
1
;
10
11
if
(*
p
!=
7
)
12
return
1
;
13
if
(&
x
[
1
] - &
x
[
0
] !=
1
)
14
return
1
;
15
16
return
0
;
17
}