Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test19652.d
blob: 193c717bd2cc188d80e3214353086241983e31a1 [
file
] [
log
] [
blame
]
struct
Base
{
int
i
;
}
struct
A
{
Base
base
;
alias
base
this
;
}
struct
B
{
A a
;
alias
a
this
;
}
auto
asGeneric
(
inout
ref
Base
block
)
@nogc
{
return
&
block
;
}
B
*
thingie
;
auto
foo
()
{
return
asGeneric
(*
thingie
);
}