summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail9735.d
blob: 42dbfdce30feaca332f7f9cd9898e5a0fcf3ce36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/fail9735.d(10): Deprecation: casting from void delegate() to void* is deprecated
---
*/

void* dg2ptr(void delegate() dg) {
    return cast(void*) dg;
}