summaryrefslogtreecommitdiff
path: root/test/Sema/warn-variable-not-needed.c
blob: 472ac8298999fa220f78304811b7127b34f146a8 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
// expected-no-diagnostics

static int a;
int bar() {
  extern int a;
  return a;
}
static int a;