diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 253679a2f38..03a3df90722 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-10-29 David Edelsohn + + * gcc.c-torture/compile/pr37878.c: New test. + 2008-10-29 Steve Ellcey 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 index 00000000000..aa18e6d3200 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr37878.c @@ -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); +} +