Commit e0075d84 by Jakub Jelinek Committed by Jakub Jelinek

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

From-SVN: r33418
parent 5ed12799
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
......
#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);
}
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