Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test21876.d
blob: a0cef99ab405406a77c7fd052650d80099836ef3 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=21876
auto
test1
()
{
int
[
0
]
a
;
return
a
;
}
auto
test2
()
{
static
int
[
0
]
a
;
return
a
;
}
enum
x
=
test1
();
enum
y
=
test2
();
static
assert
(
x
==
y
&&
y
==
[]);