summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/desig-init-2.m
blob: cf8e0c1c3a9950cab5663ff15c54b85e7099180a (plain)
1
2
3
4
5
6
7
/* Test handling of C99 designator lists in Objective-C.  Test array
   designators after structure member designators.  */
/* Origin: Joseph Myers <joseph@codesourcery.com> */
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */

struct s { int a[2]; } x = { .a[0] = 1 };