mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 13:30:37 +08:00
* gcc.c-torture/execute/20001013-1.c: New test.
From-SVN: r36891
This commit is contained in:
parent
f2a9645f10
commit
a5ad11e16e
@ -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.
|
||||
|
17
gcc/testsuite/gcc.c-torture/execute/20001013-1.c
Normal file
17
gcc/testsuite/gcc.c-torture/execute/20001013-1.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user