Debian Codegraph @

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

raw
1 /**
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice23781.d(10): Error: variable `b` cannot be read at compile time
5 ---
6 **/
7 struct Bar { int i; }
8 ref const(Bar) func1 (const return ref Bar b) { return b; }
9 immutable E1 = Bar();
10 enum E2 = &E1.func1();