]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Sun, 16 Mar 2003 19:47:36 +0000 (19:47 +0000)
committerNo Author <no-author@gcc.gnu.org>
Sun, 16 Mar 2003 19:47:36 +0000 (19:47 +0000)
'gcc-3_2-branch'.

From-SVN: r64443

gcc/testsuite/gcc.c-torture/execute/20030316-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/20030316-1.c b/gcc/testsuite/gcc.c-torture/execute/20030316-1.c
new file mode 100644 (file)
index 0000000..bde2e13
--- /dev/null
@@ -0,0 +1,12 @@
+/* PR target/9164 */
+/* The comparison operand was sign extended erraneously.  */
+
+int
+main (void)
+{
+    long j = 0x40000000;
+    if ((unsigned int) (0x40000000 + j) < 0L)
+       abort ();
+
+    return 0;
+}