summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/cxx-altivec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx-altivec.cpp')
-rw-r--r--test/SemaCXX/cxx-altivec.cpp5
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}}
OpenPOWER on IntegriCloud