diff options
Diffstat (limited to 'tests/tests2/86-struct-init.c')
| -rw-r--r-- | tests/tests2/86-struct-init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tests2/86-struct-init.c b/tests/tests2/86-struct-init.c index 6ce4e24..3cf25c7 100644 --- a/tests/tests2/86-struct-init.c +++ b/tests/tests2/86-struct-init.c @@ -148,6 +148,9 @@ void foo (struct W *w, struct pkthdr *phdr_) struct V lv3 = {((struct S){7,8,{9,10}}), ((const struct W *)w)->t.t, 50}; const struct pkthdr *phdr = phdr_; struct flowi6 flow = { .daddr = phdr->daddr, .saddr = phdr->saddr }; + int elt = 0x42; + /* Range init, overlapping */ + struct T lt2 = { { [1 ... 5] = 9, [6 ... 10] = elt, [4 ... 7] = elt+1 }, 1 }; print(ls); print(ls2); print(lt); @@ -163,6 +166,7 @@ void foo (struct W *w, struct pkthdr *phdr_) print(lv); print(lv2); print(lv3); + print(lt2); print(flow); } #endif |
