diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d9221faf64e..5db13f20623 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-11-30 Steve Ellcey + + * gcc.dg/pr41551.c: New test. + 2009-11-30 Janus Weil PR fortran/42053 diff --git a/gcc/testsuite/gcc.dg/pr41551.c b/gcc/testsuite/gcc.dg/pr41551.c new file mode 100644 index 00000000000..25a8e717fb8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr41551.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +/* Make sure we do not ICE. */ + +int main(void) +{ + int var, *p = &var; + return (double)(unsigned long)(p); +}