If a corporation acquires an asset before or during the recognition period with a principal purpose of avoiding the tax imposed under section 1374, the asset and any loss, deduction, loss carryforward, credit, or credit carryforward attributable to the asset is disregarded in determining the S corporation's pre-limitation amount, taxable income limitation, net unrealized built-in gain limitation, deductions against net recognized built-in gain, and credits against the section 1374 tax.
26 C.F.R. §1.1374-9