* gcc.c-torture/compile/pr37878.c: New test.
authorDavid Edelsohn <edelsohn@gnu.org>
Wed, 29 Oct 2008 23:39:30 +0000 (23:39 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Wed, 29 Oct 2008 23:39:30 +0000 (19:39 -0400)
From-SVN: r141451

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

index 253679a..03a3df9 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-29  David Edelsohn  <edelsohn@gnu.org>
+
+       * gcc.c-torture/compile/pr37878.c: New test.
+
 2008-10-29  Steve Ellcey  <sje@cup.hp.com>
 
        PR middle-end/37339
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr37878.c b/gcc/testsuite/gcc.c-torture/compile/pr37878.c
new file mode 100644 (file)
index 0000000..aa18e6d
--- /dev/null
@@ -0,0 +1,9 @@
+/* PR target/37878 */
+
+double y, z;
+void foo (long x)
+{
+  y = *(double *) ((long *) (x - 1) + 1);
+  z = *(double *) ((long *) (x - 1) + 1);
+}
+