From 0f28615beca3bb564c74e00f62e961ff4e1ec0ed Mon Sep 17 00:00:00 2001 From: mmitchel Date: Sat, 17 Jul 2004 18:06:28 +0000 Subject: [PATCH] PR c++/16337 * g++.dg/parse/attr2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84872 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/parse/attr2.C | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.dg/parse/attr2.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1e62636..74b8cff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-07-17 Mark Mitchell + + PR c++/16337 + * g++.dg/parse/attr2.C: New test. + 2004-07-17 Toon Moene * 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 index 0000000..eeaa9fa --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/attr2.C @@ -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; +} -- 2.7.4