re PR middle-end/37026 (GCC ICE in tree_to_gimple_tuple)
authorRichard Guenther <rguenther@suse.de>
Tue, 5 Aug 2008 11:42:33 +0000 (11:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 5 Aug 2008 11:42:33 +0000 (11:42 +0000)
2008-08-05  Richard Guenther  <rguenther@suse.de>

PR middle-end/37026
* gcc.c-torture/compile/pr37026.c: New testcase.

From-SVN: r138700

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

index 70085b1..dda2c2a 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-05  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/37026
+       * gcc.c-torture/compile/pr37026.c: New testcase.
+
 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
 
        * gnat.dg/access_discr2.adb: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37026.c b/gcc/testsuite/gcc.c-torture/compile/pr37026.c
new file mode 100644 (file)
index 0000000..694e2ca
--- /dev/null
@@ -0,0 +1,12 @@
+struct a {
+    long a1;
+    long a2;
+};
+struct b {
+    struct a b1;
+    struct a b2;
+};
+void bar (struct b *c)
+{
+  c->b1 = c->b2 = ((struct a) { foo(), 0 });
+}