Added file forgotten in commit.
From-SVN: r139731
This commit is contained in:
parent
d6beb90e13
commit
9b3f31f2ed
1 changed files with 13 additions and 0 deletions
13
gcc/testsuite/gcc.target/powerpc/altivec-volatile.c
Normal file
13
gcc/testsuite/gcc.target/powerpc/altivec-volatile.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* { dg-do compile { target powerpc*-*-* } } */
|
||||
/* { dg-require-effective-target powerpc_altivec_ok } */
|
||||
/* { dg-options "-maltivec" } */
|
||||
|
||||
/* Check that "volatile" type qualifier is propagated to vector type. */
|
||||
|
||||
#include <altivec.h>
|
||||
|
||||
vector float *f (volatile vector float *a)
|
||||
{
|
||||
return a; /* { dg-warning "discards qualifiers" } */
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue