hanchenye-llvm-project/clang/test/Sema/warn-unused-variables.c

20 lines
268 B
C

// RUN: clang-cc -fsyntax-only -Wunused-variable -verify %s
struct s0 {
unsigned int i;
};
int proto(int a, int b);
void f0(void) {
int a __attribute__((unused)),
b; // expected-warning{{unused}}
return;
}
void f1(void) {
int i;
(void)sizeof(i);
return;
}