va-arg-24.c: Correct, and rename to...
authorGeoffrey Keating <geoffk@apple.com>
Fri, 10 Oct 2003 18:12:00 +0000 (18:12 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 10 Oct 2003 18:12:00 +0000 (18:12 +0000)
* gcc.c-torture/execute/va-arg-24.c: Correct, and rename to...
* gcc.c-torture/execute/va-arg-25.c: ... here.

From-SVN: r72307

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/va-arg-24.c [deleted file]
gcc/testsuite/gcc.c-torture/execute/va-arg-25.c [new file with mode: 0644]

index 87f31af01af358575c08e2a2b8ab04913dd31ae6..47b7bf41f5b36dc9d92f88eae368cb6a9a3e2fae 100644 (file)
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-24.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-24.c
deleted file mode 100644 (file)
index c8fdaf0..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Varargs and vectors!  */
-
-#include <stdarg.h>
-
-#define vector __attribute__((vector_size(16)))
-
-const vector unsigned int v1 = {10,11,12,13};
-const vector unsigned int v2 = {20,21,22,23};
-
-void foo(int a, ...)
-{
-  va_list args;
-  vector unsigned int v;
-
-  va_start (args, a);
-  v = va_arg (args, vector unsigned int);
-  if (a != 1 || memcmp (&v, &v1, sizeof (v)) != 0)
-    abort ();
-  a = va_arg (args, int);
-  if (a != 2)
-    abort ();
-  v = va_arg (args, vector unsigned int);
-  if (memcmp (&v, &v2, sizeof (v) != 0))
-    abort ();
-  va_end (args);
-}
-
-int main(void)
-{
-  foo (1, (vector unsigned int){10,11,12,13}, 2,
-       (vector unsigned int){14,15,16,17});
-  return 0;
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-25.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-25.c
new file mode 100644 (file)
index 0000000..d90d288
--- /dev/null
@@ -0,0 +1,34 @@
+/* Varargs and vectors!  */
+
+#include <stdarg.h>
+
+#define vector __attribute__((vector_size(16)))
+
+const vector unsigned int v1 = {10,11,12,13};
+const vector unsigned int v2 = {20,21,22,23};
+
+void foo(int a, ...)
+{
+  va_list args;
+  vector unsigned int v;
+
+  va_start (args, a);
+  v = va_arg (args, vector unsigned int);
+  if (a != 1 || memcmp (&v, &v1, sizeof (v)) != 0)
+    abort ();
+  a = va_arg (args, int);
+  if (a != 2)
+    abort ();
+  v = va_arg (args, vector unsigned int);
+  if (memcmp (&v, &v2, sizeof (v)) != 0)
+    abort ();
+  va_end (args);
+}
+
+int main(void)
+{
+  foo (1, (vector unsigned int){10,11,12,13}, 2,
+       (vector unsigned int){20,21,22,23});
+  return 0;
+}
+