xref: /llvm-project/clang/test/SemaCXX/friend-class-nodecl.cpp (revision 8fbe78f6fc7b41d1a4228c126fcb522131150518)
1*8fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -ast-print %s -o %t
22dc078f2SJohn McCall // RUN: not grep '^ *class B' %t
32dc078f2SJohn McCall 
42dc078f2SJohn McCall // Tests that the tag decls in friend declarations aren't added to the
52dc078f2SJohn McCall // declaring class's decl chain.
62dc078f2SJohn McCall 
72dc078f2SJohn McCall class A {
82dc078f2SJohn McCall   friend class B;
92dc078f2SJohn McCall };
102dc078f2SJohn McCall 
11