Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag7050b.d(12): Error: `pure` function `diag7050b.f.g` cannot call impure function `diag7050b.f`
5 ---
6 */
7
8 void f()
9 {
10 pure void g()
11 {
12 f();
13 }
14 }