Commit 3cab3dc8 by Jeffrey A Law Committed by Jeff Law

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

From-SVN: r21222
parent 8d344fbc
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
......
#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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment