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

7 lines
164 B
C

// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Werror -verify %s
void f(void) {
int i; // expected-error{{unused}}
int j; // expected-error{{unused}}
}