* gcc.c-torture/execute/980716-1.c: New test.

From-SVN: r21222
This commit is contained in:
Jeffrey A Law 1998-07-16 20:47:24 +00:00 committed by Jeff Law
parent 8d344fbc71
commit 3cab3dc87e
2 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Jul 16 21:42:50 1998 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/980716-1.c: New test.
Mon Jul 13 22:26:37 1998 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/920715-1.x: No longer expected to fail on

View file

@ -0,0 +1,26 @@
#include <stdarg.h>
void
stub(int num, ...)
{
va_list ap;
char *end;
int i;
for (i = 0; i < 2; i++) {
va_start(ap, num);
while ( 1 ) {
end = va_arg(ap, char *);
if (!end) break;
}
va_end(ap);
}
}
int
main()
{
stub(1, "ab", "bc", "cx", 0);
exit (0);
}