| 1 |
/* PR c/71719 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-Wunused -W -Wno-psabi" } */ |
| 4 |
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ |
| 5 |
|
| 6 |
typedef unsigned V __attribute__ ((vector_size (16))); |
| 7 |
|
| 8 |
void bar (unsigned); |
| 9 |
|
| 10 |
V x; |
| 11 |
|
| 12 |
void |
| 13 |
foo (V v) /* { dg-bogus "set but not used" } */ |
| 14 |
{ |
| 15 |
bar (v[0]); |
| 16 |
V w = x; /* { dg-bogus "set but not used" } */ |
| 17 |
bar (w[1]); |
| 18 |
} |
| 19 |
|
| 20 |
/* Ignore a warning that is irrelevant to the purpose of this test. */ |
| 21 |
/* { dg-prune-output ".*GCC vector passed by reference.*" } */ |