* gcc.c-torture/execute/20001013-1.c: New test.
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Oct 2000 19:55:27 +0000 (21:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 16 Oct 2000 19:55:27 +0000 (21:55 +0200)
From-SVN: r36891

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

index d03fd985ab941d3473a5a23585028a12aa44291a..c78c0979e863e2509cfdf7c62547df0e84bde9e4 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-16  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.c-torture/execute/20001013-1.c: New test.
+
 2000-10-16  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.dg/format-branch-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20001013-1.c b/gcc/testsuite/gcc.c-torture/execute/20001013-1.c
new file mode 100644 (file)
index 0000000..0d139fc
--- /dev/null
@@ -0,0 +1,17 @@
+struct x {
+       int a, b;
+} z = { -4028, 4096 };
+
+int foo(struct x *p, int y)
+{
+  if ((y & 0xff) != y || -p->b >= p->a)
+    return 1;
+  return 0;
+}
+
+main()
+{
+  if (foo (&z, 10))
+    abort ();
+  exit (0);
+}