summaryrefslogtreecommitdiff
path: root/test/Sema/warn-unused-variables-werror.c
blob: ceaff1ba69b4bcf543cc1ca3cc79e170600a0c7b (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Werror -verify %s

void f() {
  int i;  // expected-error{{unused}}
  int j;  // expected-error{{unused}}
}