diff options
Diffstat (limited to 'test/SemaCXX/cxx-altivec.cpp')
-rw-r--r-- | test/SemaCXX/cxx-altivec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx-altivec.cpp b/test/SemaCXX/cxx-altivec.cpp new file mode 100644 index 0000000..baacbac --- /dev/null +++ b/test/SemaCXX/cxx-altivec.cpp @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -faltivec -fsyntax-only -verify %s + +struct Vector { + __vector float xyzw; +} __attribute__((vecreturn)) __attribute__((vecreturn)); // expected-error {{'vecreturn' attribute cannot be repeated}} |