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
/
deprecate1553.d
blob
18a7152001af8ac5ab7c8d70d6d7aad81193b6b7
1
// REQUIRED_ARGS: -de
2
3
/*
4
TEST_OUTPUT:
5
---
6
fail_compilation/deprecate1553.d(18): Deprecation: cannot use `foreach_reverse` with a delegate
7
---
8
*/
9
10
struct
S
11
{
12
int
dg
(
int delegate
(
ref int
a
)) {
return
0
; }
13
}
14
15
void
main
()
16
{
17
S s
;
18
foreach_reverse
(
a
; &
s
.
dg
) {}
19
}