comparison 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
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c++/78949 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused" } */
4 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
5
6 typedef unsigned char V __attribute__((vector_size(16)));
7 V v;
8
9 void
10 foo ()
11 {
12 V y = {};
13 V x = {}; // { dg-bogus "set but not used" }
14 y &= ~x;
15 v = y;
16 }