summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/altivec-14.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/ext/altivec-14.C')
-rw-r--r--gcc/testsuite/g++.dg/ext/altivec-14.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/altivec-14.C b/gcc/testsuite/g++.dg/ext/altivec-14.C
new file mode 100644
index 000000000..e5dd81c75
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/altivec-14.C
@@ -0,0 +1,13 @@
+/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-maltivec" } */
+
+void f (__attribute__((altivec (vector__))) signed int * a,
+ __attribute__((altivec (vector__))) signed int * const b);
+
+int
+foo (void)
+{
+ __attribute__((altivec (vector__))) signed int a[1], b[1];
+ f (a, b);
+}