This is what is known as a "hard case". What God does in such a situation is not spelled out in Scripture, so we have no way of knowing for sure. What we do know is that we are to believe, repent of our sins, confess that Jesus Christ is the Son of God, and be baptized for the remission of our sins. It is that simple.