Richard Smith e8292b10a6 [modules] When determining whether a name from a module replaces a name we
already have, check whether the name from the module is actually newer than the
existing declaration. If it isn't, we might (say) replace a visible declaration
with an injected friend, and thus make it invisible (or lose a default argument
or an array bound).

llvm-svn: 228661
2015-02-10 03:28:10 +00:00

11 lines
305 B
Plaintext

module A { header "a.h" export * }
module B { header "b.h" export * }
module C {
module C2 { header "c2.h" export * }
module C1 { header "c1.h" export * }
}
module X { header "x.h" export * }
module Y { header "y.h" export * }
module na { header "na.h" export * }
module nb { header "nb.h" export * }