Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test21438.d
blob: 02e2d8d640324cb4e3b24af3368c060fadda5c5f [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=21438
int
genGBPLookup
()
{
static
struct
Table
{
int
[
1
]
entries
;
}
auto
table
=
new
Table
;
auto
x
=
table
.
entries
[
0
];
static
assert
(
is
(
typeof
(
x
)
==
int
));
return
0
;
}
enum
x
=
genGBPLookup
;