mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 18:40:57 +08:00
Added file forgotten in commit.
From-SVN: r139731
This commit is contained in:
parent
d6beb90e13
commit
9b3f31f2ed
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…
x
Reference in New Issue
Block a user