That is up to God. The same as if he believes, but dies before he truly repents of his sins. All I know is that the Bible teaches the need for belief, repentance, confession, and baptism.
The question you brought up is an old argument against baptism, and it is using what are callled "hard cases". You don't use hard cases to decide what is commanded by God, you go by the Word of God. If a person is able, he/she must do as God has commanded in His Word.
It is not about "hard cases" it is about a man repenting and believing ..the only criteria set out in 99.99% of Gods word as NECESSARY for salvation .Is God a liar?