summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/altivec-volatile.c
blob: a2aa111459e3403ac1e69e8606fb3abcd92509eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 'volatile' qualifier" } */
}