Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
ice23781.d
blob: 7adc11607db3f56ab961e415acedda9d252a9387 [
file
]
/**
TEST_OUTPUT:
---
fail_compilation/ice23781.d(10): Error: variable `b` cannot be read at compile time
---
**/
struct
Bar
{
int
i
;
}
ref
const
(
Bar
)
func1
(
const
return
ref
Bar
b
)
{
return
b
;
}
immutable E1
=
Bar
();
enum
E2
=
&
E1
.
func1
();