gcc/testsuite/gcc.target/powerpc/altivec-volatile.c
raw| 1 | /* { dg-do compile { target powerpc*-*-* } } */ |
| 2 | /* { dg-options "-maltivec" } */ |
| 3 | /* { dg-require-effective-target powerpc_altivec } */ |
| 4 | |
| 5 | /* Check that "volatile" type qualifier is propagated to vector type. */ |
| 6 | |
| 7 | #include <altivec.h> |
| 8 | |
| 9 | vector float *f (volatile vector float *a) |
| 10 | { |
| 11 | return a; /* { dg-warning "discards 'volatile' qualifier" } */ |
| 12 | } |
| 13 |