18807e830SRichard Smith // RUN: rm -rf %t 2*47972afdSRichard Smith // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-decl-order -verify %s 38807e830SRichard Smith // expected-no-diagnostics 48807e830SRichard Smith 58807e830SRichard Smith // Check that we include all decls from 'a' before the decls from 'b' in foo's 68807e830SRichard Smith // redecl chain. If we don't, then name lookup only finds invisible friend 78807e830SRichard Smith // declarations and the lookup below will fail. 88807e830SRichard Smith #include "b.h" 98807e830SRichard Smith N::foo *use; 10