* gcc.c-torture/execute/20001013-1.c: New test.

From-SVN: r36891
This commit is contained in:
Jakub Jelinek 2000-10-16 21:55:27 +02:00 committed by Jakub Jelinek
parent f2a9645f10
commit a5ad11e16e
2 changed files with 21 additions and 0 deletions

View 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.

View File

@ -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);
}