mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
245 B
D
14 lines
245 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/failsafec.d(13): Error: `@safe` function `failsafec.callingsystem` cannot call `@system` delegate `sysdelegate`
|
|
---
|
|
*/
|
|
|
|
void delegate() @system sysdelegate;
|
|
|
|
@safe
|
|
void callingsystem()
|
|
{
|
|
sysdelegate();
|
|
}
|