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
Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git]
/
sdcc
/
support
/
regression
/
qct
/
0033-ptrindec.c
blob
30d4271be21d2415b04166ec2777afdd32dc90cb
1
2
3
int
4
main
()
5
{
6
int
arr
[
2
];
7
int
*
p
;
8
9
arr
[
0
] =
2
;
10
arr
[
1
] =
3
;
11
p
= &
arr
[
0
];
12
if
(*(
p
++) !=
2
)
13
return
1
;
14
if
(*(
p
++) !=
3
)
15
return
2
;
16
17
p
= &
arr
[
1
];
18
if
(*(
p
--) !=
3
)
19
return
1
;
20
if
(*(
p
--) !=
2
)
21
return
2
;
22
23
p
= &
arr
[
0
];
24
if
(*(++
p
) !=
3
)
25
return
1
;
26
27
p
= &
arr
[
1
];
28
if
(*(--
p
) !=
2
)
29
return
1
;
30
31
return
0
;
32
}