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