// RUN: %clang_cc1 -fsyntax-only -verify %s
int x;voidf(){staticint s;int x;// expected-note{{'x' declared here}}
externintg();structlocal{intg(){return x;}// expected-error{{reference to local variable 'x' declared in enclosing function 'f'}}
inth(){return s;}intk(){return:: x;}intl(){returng();}};}
local* p =0;// expected-error{{unknown type name 'local'}}