diff options
author | no-author <no-author@gcc.gnu.org> | 2005-04-29 01:23:04 +0000 |
---|---|---|
committer | no-author <no-author@gcc.gnu.org> | 2005-04-29 01:23:04 +0000 |
commit | 22de0fbbe617653d989bfc68e199c63f689fcef9 (patch) | |
tree | 13d1318cfe3882d2a24ea22cd8d20ef32e86662d /gcc/testsuite/gcc.dg/pch/faltivec-1.c | |
parent | 5b5fcc5945558d32c619dd3047ae0ee16a6edd2f (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-5014
'apple-gcc-5014'.
git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-5014@98965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pch/faltivec-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pch/faltivec-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pch/faltivec-1.c b/gcc/testsuite/gcc.dg/pch/faltivec-1.c new file mode 100644 index 00000000000..5824d4155cc --- /dev/null +++ b/gcc/testsuite/gcc.dg/pch/faltivec-1.c @@ -0,0 +1,17 @@ +/* APPLE LOCAL file AltiVec */ +/* { dg-do compile { target powerpc-*-darwin* } } */ +/* { dg-options "-faltivec -I. -mcpu=G5" } */ + +#include "faltivec-1.h" +/* { dg-error "No such file or directory" "" { target *-*-* } 5 } */ +/* { dg-error "one or more PCH files were found" "" { target *-*-* } 5 } */ +/* { dg-error "use -Winvalid-pch for more information" "" { target *-*-* } 5 } */ + +/* Test for correct PCH validation of -faltivec. */ +void foo() +{ + const vector signed short vconst = (vector signed short) (0,0,0,0,0,0,0,0); + const vector signed short vconst2 = vec_splat(vconst, 0); + bar(); +} + |