Commit 61a5fa29 by Bernd Schmidt Committed by Bernd Schmidt

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

From-SVN: r90588
parent 32fab725
2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
* gcc.c-torture/execute/20041113-1.c: New test.
2004-11-13 James A. Morrison <phython@gcc.gnu.org> 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
PR target/18230 PR target/18230
......
#include <stdarg.h>
void test (int x, ...)
{
va_list ap;
int i;
va_start (ap, x);
if (va_arg (ap, int) != 1)
abort ();
if (va_arg (ap, int) != 2)
abort ();
if (va_arg (ap, int) != 3)
abort ();
if (va_arg (ap, int) != 4)
abort ();
}
double a = 40.0;
int main(int argc, char *argv[])
{
test(0, 1, 2, 3, (int)(a / 10.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