Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / class / class.friend / p1-cxx11.cpp
blob6e3d85001fa87dca7845c5af8d44aa30f4f0e3b4
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
4 class A {
5 class AInner {
6 };
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