mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
fix Issue 22429 - importC: designator-list not supported yet (#14435)
This commit is contained in:
parent
882a655bad
commit
8dc0d27927
1 changed files with 15 additions and 0 deletions
|
@ -701,6 +701,20 @@ void test42()
|
|||
assert(i == 3, __LINE__);
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
|
||||
void test43()
|
||||
{
|
||||
static int a[2] = { [0] = 1, [1] = 2, };
|
||||
assert(a[0] == 1, __LINE__);
|
||||
assert(a[1] == 2, __LINE__);
|
||||
|
||||
typedef struct S { int x; } S;
|
||||
S s = {.x = 3};
|
||||
assert(s.x == 3, __LINE__);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************/
|
||||
|
||||
int main()
|
||||
|
@ -743,6 +757,7 @@ int main()
|
|||
test41();
|
||||
test23230();
|
||||
test42();
|
||||
test43();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue