blob: fd225436be82bf45326695f51e8d09ea35692079 [file] [log] [blame]
Douglas Gregorb5352cf2009-10-08 21:35:42 +00001// RUN: clang-cc -fsyntax-only -Wunused-variable -verify %s
2
3struct s0 {
4 unsigned int i;
5};
6
7int proto(int a, int b);
8
9void f0(void) {
10 int a __attribute__((unused)),
11 b; // expected-warning{{unused}}
12 return;
13}
14
15void f1(void) {
16 int i;
17 (void)sizeof(i);
18 return;
19}