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:
parent
8eeb31597b
commit
f63c134b33
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue