Commit d0fd1347 by Geoffrey Keating Committed by Geoffrey Keating

va-arg-24.c: Correct, and rename to...

	* gcc.c-torture/execute/va-arg-24.c: Correct, and rename to...
	* gcc.c-torture/execute/va-arg-25.c: ... here.

From-SVN: r72307
parent 6202cc89
2003-10-10 Geoffrey Keating <geoffk@apple.com>
* gcc.c-torture/execute/va-arg-24.c: Correct, and rename to...
* gcc.c-torture/execute/va-arg-25.c: ... here.
2003-10-09 Mark Mitchell <mark@codesourcery.com>
* g++.dg/ext/attrib8.C: Only run it on x86 targets.
......
......@@ -20,7 +20,7 @@ void foo(int a, ...)
if (a != 2)
abort ();
v = va_arg (args, vector unsigned int);
if (memcmp (&v, &v2, sizeof (v) != 0))
if (memcmp (&v, &v2, sizeof (v)) != 0)
abort ();
va_end (args);
}
......@@ -28,7 +28,7 @@ void foo(int a, ...)
int main(void)
{
foo (1, (vector unsigned int){10,11,12,13}, 2,
(vector unsigned int){14,15,16,17});
(vector unsigned int){20,21,22,23});
return 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