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
/
test17807.d
blob
b8c5518c3b0bf5b4b0de90b56cb307763eb9251a
1
// REQUIRED_ARGS: -o- -w
2
3
int
bug17807
(){
4
int
y
=
0
;
5
Lswitch
:
switch
(
2
){
6
{
case
0
:
break
; }
7
enum
x
=
0
;
8
struct
S
{
enum
x
=
0
; }
9
int
foo
(){
10
return
0
;
11
}
12
default
:
y
=
x
+
S
.
x
+
foo
();
13
static foreach
(
i
;
1
.
.5
)
14
case
i
:
break
Lswitch
;
15
}
16
return
y
;
17
}