☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
failsafeb.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/failsafeb.d
code
plain
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
}