* gcc.c-torture/compile/20020109-2.c: New test.
authorAlan Matsuoka <alanm@redhat.com>
Wed, 9 Jan 2002 23:53:25 +0000 (23:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 9 Jan 2002 23:53:25 +0000 (16:53 -0700)
From-SVN: r48701

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20020109-2.c [new file with mode: 0644]

index c840926352b4b50c6f52c964b941b6d87c066643..8221e54f8441f38ac75166307ca19adbc4a3cece 100644 (file)
@@ -1,3 +1,7 @@
+Wed Jan  9 16:48:33 2002  Alan Matsuoka  (alanm@redhat.com)
+
+       * gcc.c-torture/compile/20020109-2.c: New test.
+
 2002-01-09  Gwenole Beauchesne  <bgeauchesne@mandrakesoft.com>
 
        * gcc.c-torture/execute/loop-10.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020109-2.c b/gcc/testsuite/gcc.c-torture/compile/20020109-2.c
new file mode 100644 (file)
index 0000000..3167315
--- /dev/null
@@ -0,0 +1,30 @@
+typedef union
+{
+  unsigned char member3;
+  signed short member4;
+  unsigned int member5;
+}
+UNI02;
+
+struct srt_dat_t
+{
+  UNI02 un2;
+  unsigned long member1;
+  signed short member2;
+};
+
+struct srt_dat_t exsrt1;
+void
+extern_test (struct srt_dat_t arg1)
+{
+  arg1.un2.member3++;
+  arg1.member1++;
+  arg1.member2++;
+}
+
+int
+main (void)
+{
+  extern_test (exsrt1);
+  return (0);
+}