d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / deprecate1553.d
blob18a7152001af8ac5ab7c8d70d6d7aad81193b6b7
1 // REQUIRED_ARGS: -de
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/deprecate1553.d(18): Deprecation: cannot use `foreach_reverse` with a delegate
7 ---
8 */
10 struct S
12 int dg(int delegate(ref int a)) { return 0; }
15 void main()
17 S s;
18 foreach_reverse(a; &s.dg) {}