* execute/va-arg-20.c: New test.

From-SVN: r33418
This commit is contained in:
Jakub Jelinek 2000-04-25 21:09:01 +02:00 committed by Jakub Jelinek
parent 5ed1279917
commit e0075d846d
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-04-25 Jakub Jelinek <jakub@redhat.com>
* execute/va-arg-20.c: New test.
2000-04-20 Greg McGary <gkm@gnu.org>
* compile/20000420-2.c: New test for stack misalignment

View File

@ -0,0 +1,22 @@
#include <stdarg.h>
void foo(va_list v)
{
unsigned long long x = va_arg (v, unsigned long long);
if (x != 16LL)
abort();
}
void bar(char c, char d, ...)
{
va_list v;
va_start(v, d);
foo(v);
va_end(v);
}
int main(void)
{
bar(0, 0, 16LL);
exit(0);
}