]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/Wunused-var-6.c
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -Wunused-but-set-variable" } */
6 struct S
{ int a
, b
, c
; };
7 typedef _Atomic
struct S T
;
12 static T x
= (struct S
) { 0, 0, 0 }; /* { dg-bogus "set but not used" } */
13 bar (0, x
= (struct S
) { 1, 1, 1 });