☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag8892.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/diag8892.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag8892.d(14): Error: cannot implicitly convert expression `['A']` of type `char[]` to `char[2]`
5
---
6
*/
7
struct Foo
8
{
9
char[2] data;
10
}
11
12
void main()
13
{
14
auto f = Foo(['A']);
15
}