Investors & landlords

It would be a capital loss and capital losses offset capital gains. 

 

You would report the loss in the tax year the stock became worthless.