If any person acquires stock in an S corporation by reason of the death of a decedent or by bequest, devise, or inheritance, section
691 shall be applied with respect to any item of income of the S corporation in the same manner as if the decedent had held directly his pro rata share of such item.