// RUN: %clang_cc1 -fsyntax-only -verify %s
voidf1(){structX{structY;};structX::Y{voidf(){}};}voidf2(){structX{structY;structY{voidf(){}};};}// A class nested within a local class is a local class.
voidf3(inta){// expected-note{{'a' declared here}}
structX{structY{intf(){return a;}// expected-error{{reference to local variable 'a' declared in enclosing function 'f3'}}
};};}