From: Richard Henderson Date: Thu, 4 May 2000 23:27:15 +0000 (-0700) Subject: 20000504-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f63c134b33be061bebaa46bcb2019ed747c8bedf;p=gcc.git 20000504-1.c: New test. * gcc.c-torture/compile/20000504-1.c: New test. Derived from OpenSSL by Jason R Thorpe. From-SVN: r33691 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b43c8a3bcf5..07dadf5d64e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-05-04 Richard Henderson + + * gcc.c-torture/compile/20000504-1.c: New test. Derived from + OpenSSL by Jason R Thorpe. + 2000-05-03 Robert Lipe * gcc.dg/20000503-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20000504-1.c b/gcc/testsuite/gcc.c-torture/compile/20000504-1.c new file mode 100644 index 00000000000..1941bb34da5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000504-1.c @@ -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); +}