☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail158.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail158.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail158.d(17): Error: too many initializers for `S` with 2 fields
5
---
6
*/
7
8
struct S
9
{
10
int i;
11
int j = 3;
12
}
13
14
15
void main()
16
{
17
S s = S( 1, 5, 6 );
18
}