repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
parens_inc.d
blob
b9d11eb9b8e539231d9527e16d17e350a353041e
1
// Test UnaryExp (expr)++ parsing
2
3
void
main
(){
4
int
[
2
]
y
;
5
int
*
x
=
y
.
ptr
;
6
*(
x
)++=
0
;
7
(*(
x
)--)=
0
;
8
(*
x
++)=
0
;
// ok
9
int
*[]
z
;
10
*(
z
[
0
])++=
0
;
//ok
11
(
y
[
0
])--;
12
*
x
++=
0
;
13
}
14
15
void
f
()
16
{
17
int
b
;
18
(
b
)++;
19
int
[]
a
;
20
b
= (
a
)[
0
]++;
//ok
21
(
a
[
0
])--;
22
b
= (
int
).
init
;
//ok
23
}