re PR c++/16337 (bug defining multiple altivec vectors in same C++ statement)
authorMark Mitchell <mark@codesourcery.com>
Sat, 17 Jul 2004 18:06:28 +0000 (18:06 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 17 Jul 2004 18:06:28 +0000 (18:06 +0000)
PR c++/16337
* g++.dg/parse/attr2.C: New test.

From-SVN: r84872

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/attr2.C [new file with mode: 0644]

index 1e62636ce8735c75dcbf677f511c3fe3d6f3578b..74b8cffb12f65aad81cc9071247aa1f4efe27118 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-17  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/16337
+       * g++.dg/parse/attr2.C: New test.
+
 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * g77.dg: Removed.
diff --git a/gcc/testsuite/g++.dg/parse/attr2.C b/gcc/testsuite/g++.dg/parse/attr2.C
new file mode 100644 (file)
index 0000000..eeaa9fa
--- /dev/null
@@ -0,0 +1,15 @@
+// PR c++/16337
+// On i686-pc-linux-gnu, without options, we get:
+//   warning: SSE vector return without SSE enabled changes the ABI
+// { dg-options "-w" }
+
+#define vector __attribute__((vector_size(16)))
+vector signed int foo (void)
+{
+  vector signed int v1 = { 1, 2, 3, 4 };
+  vector signed int v2, v3;
+  vector signed int v4;
+  v2 = v1;
+  v3 = v1;
+  v4 = v1;
+}