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
/
diag9831.d
blob
c93a06a465ac85fe921d09d60276b344e8c98e8f
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag9831.d(13): Error: function `diag9831.main.__lambda3(__T1)(x)` cannot access variable `c` in frame of function `D main`
5
fail_compilation/diag9831.d(11): `c` declared here
6
---
7
*/
8
9
void
main
()
10
{
11
immutable int
c
;
12
int function
(
int
x
)
func
;
13
func
=
x
=>
c
;
14
}