(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
deprecate1553.d
// REQUIRED_ARGS: -de

/*
TEST_OUTPUT:
---
fail_compilation/deprecate1553.d(18): Deprecation: cannot use `foreach_reverse` with a delegate
---
*/

struct S
{
    int dg(int delegate(ref int a)) { return 0; }
}

void main()
{
    S s;
    foreach_reverse(a; &s.dg) {}
}