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