20000504-1.c: New test.

* gcc.c-torture/compile/20000504-1.c: New test.  Derived from
        OpenSSL by Jason R Thorpe.

From-SVN: r33691
This commit is contained in:
Richard Henderson 2000-05-04 16:27:15 -07:00 committed by Richard Henderson
parent 8eeb31597b
commit f63c134b33
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-05-04 Richard Henderson <rth@cygnus.com>
* gcc.c-torture/compile/20000504-1.c: New test. Derived from
OpenSSL by Jason R Thorpe.
2000-05-03 Robert Lipe <robertlipe@usa.net>
* gcc.dg/20000503-1.c: New test.

View File

@ -0,0 +1,15 @@
struct foo {
int a;
int b;
};
int func(struct foo *foo, int a)
{
if (foo->b == 0) {
int ret = foo->a = a;
if (a >= 0)
foo->a = a;
return (ret);
}
return (0);
}