Upon the failure of either party to comply with the requirements of § 23A-9-1, 23A-9-2, or 23A-9-3, the court shall exclude the testimony of any undisclosed witness offered by such party as to the defendant's absence from or presence at, the scene of the alleged offense. This section shall not limit the right of a defendant to testify in his own behalf.
SDCL 23A-9-4