xref: /aosp_15_r20/external/clang/test/SemaCXX/friend-class-nodecl.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -ast-print %s -o %t
2*67e74705SXin Li // RUN: not grep '^ *class B' %t
3*67e74705SXin Li 
4*67e74705SXin Li // Tests that the tag decls in friend declarations aren't added to the
5*67e74705SXin Li // declaring class's decl chain.
6*67e74705SXin Li 
7*67e74705SXin Li class A {
8*67e74705SXin Li   friend class B;
9*67e74705SXin Li };
10*67e74705SXin Li 
11