blob: e121bda1b96e6d7e7688da67c509b83fa554c25d [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/failsafea.d(14): Error: `@safe` function `failsafea.callingsystem` cannot call `@system` function `failsafea.systemfunc`
fail_compilation/failsafea.d(9): `failsafea.systemfunc` is declared here
---
*/
void systemfunc() @system {}
@safe
void callingsystem()
{
systemfunc();
}