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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail12908.d
blob
67ea6cefb22747862de49b0e9253652c62a1e9f8
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail12908.d(14): Error: `pure` delegate `fail12908.main.__foreachbody1` cannot call impure function `fail12908.g`
5
---
6
*/
7
8
void
g
() {}
9
10
void
main
()
pure
11
{
12
foreach
(
k
,
v
; [
""
:
""
])
13
{
14
g
();
15
}
16
}