brintos

brintos / llvm-project-archived public Read only

0
0
Text · 385 B · 6e3d850 Raw
14 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2// expected-no-diagnostics3 4class A {5  class AInner {6  };7 8  void a_member();9  friend void A::a_member(); // ok in c++11, ill-formed in c++9810  friend void a_member(); // ok in both, refers to non-member11  friend class A::AInner; // ok in c++11, extension in c++9812  friend class AInner; // ok in both, refers to non-member13};14