What happens to units and buildings if they get "buried" under destructible rocks?

They are pushed out of the way, or if they can't do so, due to fungal, hold position units, etc., they die. See: