parent
5ed1279917
commit
e0075d846d
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue