diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/altivec-2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/altivec-2.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/altivec-2.C b/gcc/testsuite/g++.dg/altivec-2.C new file mode 100644 index 00000000000..0b2f3751a24 --- /dev/null +++ b/gcc/testsuite/g++.dg/altivec-2.C @@ -0,0 +1,15 @@ +/* APPLE LOCAL file AltiVec */ +/* Test for distinguishing 'vector bool ...' from 'vector unsigned ...' + types by the front-end. */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-faltivec" } */ + +struct Foo1 { + void foo(vector unsigned char) { } + void foo(vector bool char) { } /* { dg-bogus "has already been declared" } */ + void bar(vector unsigned short) { } + void bar(vector bool short) { } /* { dg-bogus "has already been declared" } */ + void baz(vector unsigned int) { } + void baz(vector bool int) { } /* { dg-bogus "has already been declared" } */ +}; + |