re PR c/22589 (ICE casting to long long)
authorRichard Sandiford <richard@codesourcery.com>
Thu, 28 Jul 2005 08:00:57 +0000 (08:00 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 28 Jul 2005 08:00:57 +0000 (08:00 +0000)
PR c/22589
* gcc.c-torture/compile/pr22589.c: New test.

From-SVN: r102467

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

index 4eb0e04b1da8e213c9b3cb792efaa67aa73e348e..a7fcc986ad4086e7e21d7383831af8fe16d53b5b 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-28  Richard Sandiford  <richard@codesourcery.com>
+
+       PR c/22589
+       * gcc.c-torture/compile/pr22589.c: New test.
+
 2005-07-28  Jan Hubicka  <jh@suse.cz>
        
        * update-loopch.c: New testcase.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr22589-1.c b/gcc/testsuite/gcc.c-torture/compile/pr22589-1.c
new file mode 100644 (file)
index 0000000..d9cc0cf
--- /dev/null
@@ -0,0 +1,4 @@
+int bar (char *foo)
+{
+  return (long long) ((int) foo + 0) < 0;
+}