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