1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -fblocks -verify %s
7 int proto(int a
, int b
);
10 int a
__attribute__((unused
)),
11 b
; // expected-warning{{unused}}
23 int X
= 4; // Shouldn't have a bogus 'unused variable X' warning.
24 return Y
+ X
; // expected-error {{use of undeclared identifier 'Y'}}
29 (void)(Y1
+ X1
); // expected-error {{use of undeclared identifier 'Y1'}}
30 (void)(^() { int X
= 4; }); // expected-warning{{unused}}
31 (void)(^() { int X
= 4; return Y
+ X
; }); // expected-error {{use of undeclared identifier 'Y'}}
36 int __attribute__((cleanup(c1
))) X1
= 4;