Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail9773.d(7): Error: cannot create default argument for `ref` / `out` parameter from expression `""` because it is not an lvalue
5 ---
6 */
7 void f(ref string a = "")
8 {
9 a = "crash and burn";
10 }