mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
14 lines
250 B
D
14 lines
250 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/failsafeb.d(13): Error: `@safe` function `failsafeb.callingsystem` cannot call `@system` function pointer `sysfuncptr`
|
|
---
|
|
*/
|
|
|
|
void function() @system sysfuncptr;
|
|
|
|
@safe
|
|
void callingsystem()
|
|
{
|
|
sysfuncptr();
|
|
}
|