]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/failsafea.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failsafea.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/failsafea.d(14): Error: `@safe` function `failsafea.callingsystem` cannot call `@system` function `failsafea.systemfunc`
5 fail_compilation/failsafea.d(9): `failsafea.systemfunc` is declared here
6 ---
7 */
8
9 void systemfunc() @system {}
10
11 @safe
12 void callingsystem()
13 {
14 systemfunc();
15 }