Home | History | Annotate | Download | only in class.friend
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
      2 // expected-no-diagnostics
      3 
      4 class A {
      5   class AInner {
      6   };
      7 
      8   void a_member();
      9   friend void A::a_member(); // ok in c++11, ill-formed in c++98
     10   friend void a_member(); // ok in both, refers to non-member
     11   friend class A::AInner; // ok in c++11, extension in c++98
     12   friend class AInner; // ok in both, refers to non-member
     13 };
     14