Debian Codegraph @

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

raw
1 /**
2 Test language editions (currently experimental)
3
4 TEST_OUTPUT:
5 ---
6 fail_compilation/editions.d(15): Error: scope parameter `x` may not be returned
7 ---
8 */
9 @__edition_latest_do_not_use
10 module editions;
11
12 @safe:
13 int* f(scope int* x)
14 {
15 return x;
16 }