Johnny Nobody (1965)

A small Irish town: atheist writer shot by a man claiming amnesia. Miracle or murder? Local priest discovers it's a plot: revenge killing. Gets to trial too late - the jury have acquitted. JN gloats - to be struck dead in the courtroom.