Files
clang-p2996/clang/test/Modules/Inputs/redecl-found-building-chains/d.h
Richard Smith e687bf83c0 [modules] If we find more formerly-canonical declarations of an entity while
building its redecl chains, make sure we pull in the redeclarations of those
canonical declarations.

It's pretty difficult to reach a situation where we can find more canonical
declarations of an entity while building its redecl chains; I think the
provided testcase (4 modules and 7 declarations) cannot be reduced further.

llvm-svn: 232411
2015-03-16 20:54:07 +00:00

7 lines
191 B
C

#include "a.h" // ensure that our canonical decl is not from b
struct A;
#include "b.h"
struct A;
#include "c.h" // ensure that our type for A doesn't reference the definition in b
struct A;