// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// expected-no-diagnostics
classA{classAInner{};voida_member();friendvoid A::a_member();// ok in c++11, ill-formed in c++98
friendvoid a_member();// ok in both, refers to non-member
friendclass A::AInner;// ok in c++11, extension in c++98
friendclass AInner;// ok in both, refers to non-member
};