* gcc.c-torture/execute/980716-1.c: New test.
From-SVN: r21222
This commit is contained in:
parent
8d344fbc71
commit
3cab3dc87e
2 changed files with 30 additions and 0 deletions
|
@ -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
|
||||
|
|
26
gcc/testsuite/gcc.c-torture/execute/980716-1.c
Normal file
26
gcc/testsuite/gcc.c-torture/execute/980716-1.c
Normal 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);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue