diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/altivec-5.C')
-rw-r--r-- | gcc/testsuite/g++.dg/altivec-5.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/altivec-5.C b/gcc/testsuite/g++.dg/altivec-5.C new file mode 100644 index 00000000000..9cfa64470d6 --- /dev/null +++ b/gcc/testsuite/g++.dg/altivec-5.C @@ -0,0 +1,19 @@ +/* APPLE LOCAL file AltiVec */ +/* Test for AltiVec type overloading. */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-faltivec" } */ + void foo(vector unsigned char) { } + void foo(vector signed char) { } + void foo(vector bool char) { } + void foo(vector unsigned short) { } + void foo(vector signed short) { } + void foo(vector bool short) { } + void foo(vector unsigned int) { } + void foo(vector signed int) { } + void foo(vector bool int) { } + void foo(vector float) { } + void foo(vector pixel) { } + void foo(int) { } + void foo(unsigned int) { } + void foo(float) { } + void foo(bool) { } |