Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail328.d(13): Error: `@safe` function `fail328.foo` cannot call `@system` function `fail328.bar`
5 fail_compilation/fail328.d(9): `fail328.bar` is declared here
6 ---
7 */
8
9 void bar();
10
11 @safe void foo()
12 {
13 bar();
14 }