mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
15 lines
325 B
D
15 lines
325 B
D
/*
|
|
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();
|
|
}
|