Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/failsafeb.d(13): Error: `@safe` function `failsafeb.callingsystem` cannot call `@system` function pointer `sysfuncptr`
5 ---
6 */
7
8 void function() @system sysfuncptr;
9
10 @safe
11 void callingsystem()
12 {
13 sysfuncptr();
14 }