2015-02-13 07:21:45 +08:00
|
|
|
// RUN: rm -rf %t
|
2015-06-16 08:08:24 +08:00
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/merge-decl-order -verify %s
|
2015-02-13 07:21:45 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
|
|
|
// Check that we include all decls from 'a' before the decls from 'b' in foo's
|
|
|
|
// redecl chain. If we don't, then name lookup only finds invisible friend
|
|
|
|
// declarations and the lookup below will fail.
|
|
|
|
#include "b.h"
|
|
|
|
N::foo *use;
|