OSDN Git Service

* objc.dg/desig-init-2.m: New test.
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2004 22:44:24 +0000 (22:44 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Nov 2004 22:44:24 +0000 (22:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90459 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/desig-init-2.m [new file with mode: 0644]

index 16b4d3b..8f6d5fd 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-10  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * objc.dg/desig-init-2.m: New test.
+
 2004-11-10  Adam Nemet  <anemet@lnxw.com>
 
        PR middle-end/18160  
diff --git a/gcc/testsuite/objc.dg/desig-init-2.m b/gcc/testsuite/objc.dg/desig-init-2.m
new file mode 100644 (file)
index 0000000..cf8e0c1
--- /dev/null
@@ -0,0 +1,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 };