forked from qt-creator/qt-creator
C++: fix parsing nested C99 designated initializers.
Change-Id: Iaa0e7550abf6be77601b1852652bb3d0731d0323 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -7,3 +7,12 @@ int a[10] = {2, 4, [8]=9, 10};
|
||||
int a[MAX] = {
|
||||
1, 3, 5, 7, 9, [MAX-5] = 8, 6, 4, 2, 0
|
||||
};
|
||||
struct {
|
||||
int table [3];
|
||||
struct {
|
||||
int a;
|
||||
int b;
|
||||
} parts;
|
||||
} a[MAX] = {
|
||||
[2] = { .table = { 8, [1] = 7, 6 }, .parts = { .a = 0, 1 } }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user