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
/
test22228.d
blob
ef31b4badcae692f81a8a965549a6602d08ae581
1
// https://issues.dlang.org/show_bug.cgi?id=22228
2
// Note: fixed by reverting pull #11545
3
4
auto
f
()
5
{
immutable int
i
;
6
auto
p
= (() => &
i
)();
7
8
return
0
;
9
}
10
11
enum
ctfeInvocation
=
f
;