Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag8892.d
blob: 1bf6192175be034e12f7da67b8972edab84f5ded [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/diag8892.d(14): Error: cannot implicitly convert expression `['A']` of type `char[]` to `char[2]`
---
*/
struct
Foo
{
char
[
2
]
data
;
}
void
main
()
{
auto
f
=
Foo
([
'A'
]);
}