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 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
issue11070.d
blob
07d69ee87ab5f6230ba287cef640ff2e813ebd3b
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/issue11070.d(16): Error: undefined identifier `x`
5
---
6
*/
7
8
int
get
() {
return
1
; }
9
10
void
test
() {
11
import
std
.
stdio
:
writeln
;
12
switch
(
auto
x
=
get
()) {
13
default
:
14
auto
z
=
x
;
15
}
16
x
=
1
;
17
}