annotate gcc/testsuite/c-c++-common/Wunused-var-16.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR c++/78949 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-Wunused" } */
kono
parents:
diff changeset
4 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 typedef unsigned char V __attribute__((vector_size(16)));
kono
parents:
diff changeset
7 V v;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 void
kono
parents:
diff changeset
10 foo ()
kono
parents:
diff changeset
11 {
kono
parents:
diff changeset
12 V y = {};
kono
parents:
diff changeset
13 V x = {}; // { dg-bogus "set but not used" }
kono
parents:
diff changeset
14 y &= ~x;
kono
parents:
diff changeset
15 v = y;
kono
parents:
diff changeset
16 }