IRC § 338
Purchase & Sale of Target
A purchaser buys all of a target’s stock and then resells it to an unrelated person within the same year, yet remains eligible to make a section 338 election that treats the target as having sold its assets.
Treas. Reg. § 1.338-3(c)(1)(ii), Example 1 • Section 338 Elections