PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / Wunused-var-12.c
blobb2fb9aca1df7c12befa0400b624889f83975e38a
1 /* PR c++/44780 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused" } */
4 /* { dg-additional-options "-fno-common" { target { { hppa*-*-hpux* } && { ! lp64 } } } } */
6 typedef double vec __attribute__ ((__vector_size__ (16)));
7 vec c, d;
9 void
10 foo (void)
12 vec a;
13 vec b;
14 a = c;
15 b = a;
16 d = b;
19 void
20 bar (void)
22 vec a;
23 vec b; /* { dg-warning "set but not used" } */
24 a = c;
25 b = a;