xref: /aosp_15_r20/external/clang/test/Modules/merge-decl-order.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: rm -rf %t
2*67e74705SXin Li // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-decl-order -verify %s
3*67e74705SXin Li // expected-no-diagnostics
4*67e74705SXin Li 
5*67e74705SXin Li // Check that we include all decls from 'a' before the decls from 'b' in foo's
6*67e74705SXin Li // redecl chain. If we don't, then name lookup only finds invisible friend
7*67e74705SXin Li // declarations and the lookup below will fail.
8*67e74705SXin Li #include "b.h"
9*67e74705SXin Li N::foo *use;
10