☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
ice23781.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/ice23781.d
code
plain
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();