Closed martong closed 5 years ago
During the import of Y
the isBeingDefined for X
should be true. The test looks good if only this is the purpose of it. (The previous decl for X
definition could be checked too.)
Yes, I wanted to have a concrete test which exercises the isBeingDefined()
branch in the structural eq logic. (Too bad, this test does not fail on upstream , because there we do not handle the redecl chain of classes yet.)
This test exercises the structural eq logic too. In this test case,
isBeingDefined()
will be true forX
.This test is related to https://reviews.llvm.org/D53697 But there the redecl chain is not handled yet, so we should upstream it only later.