* gcc.dg/20000420-1.c: New test.

From-SVN: r33286
This commit is contained in:
Jeffrey A Law 2000-04-20 17:57:19 +00:00 committed by Jeff Law
parent 6e84eab83f
commit 404e6b792e
2 changed files with 23 additions and 0 deletions

View File

@ -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 <nathan@codesourcery.com>
* g++.abi/ptrflags.C: New test.

View File

@ -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;
}