llvm-for-llvmta/tools/clang/test/Sema/warn-unused-variables-werror.c

7 lines
160 B
C

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