// RUN: %clang_cc1 -fmodules %s -verify
// expected-no-diagnostics
module A
module B
module C
void ;
// UsingShadowDecl names the friend declaration
using N::X;
// The friend declaration from N::Friendly is now the first in the redecl
// chain, so is not ordinarily visible. We need the IDNS of the UsingShadowDecl
// to still consider it to be visible, though.
X *p;