To be capable of receiving inter vivos, it is sufficient to be conceived at the time of the gift.
To be capable of receiving by will, it is sufficient to be conceived at the time of the testator’s death.
Nevertheless, the gift or will will only have effect as long as the child is born viable.