Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail9735.d

raw
1 /*
2 REQUIRED_ARGS: -de
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail9735.d(10): Deprecation: casting from void delegate() to void* is deprecated
6 ---
7 */
8
9 void* dg2ptr(void delegate() dg) {
10 return cast(void*) dg;
11 }