From: Jeffrey A Law Date: Thu, 20 Apr 2000 17:57:19 +0000 (+0000) Subject: * gcc.dg/20000420-1.c: New test. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=404e6b792ebb2ed3938c406c63688c40fe05ba51;p=platform%2Fupstream%2Fgcc.git * gcc.dg/20000420-1.c: New test. From-SVN: r33286 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1cda827..c5c35f8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 20 11:57:03 2000 Jeffrey A Law (law@cygnus.com) + + * gcc.dg/20000420-1.c: New test. + 2000-04-20 Nathan Sidwell * g++.abi/ptrflags.C: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20000420-1.c b/gcc/testsuite/gcc.c-torture/compile/20000420-1.c new file mode 100644 index 0000000..552f02e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000420-1.c @@ -0,0 +1,19 @@ +struct z_candidate { struct z_candidate *next;int viable;}; +int pedantic; + +static struct z_candidate * +splice_viable (cands) + struct z_candidate *cands; +{ + struct z_candidate **p = &cands; + + for (; *p; ) + { + if (pedantic ? (*p)->viable == 1 : (*p)->viable) + p = &((*p)->next); + else + *p = (*p)->next; + } + + return cands; +}