Like if you are fighting a Basculin and you use explosion/Perish song to kill it would you still get the EVs? Or if it used double edge and killed you but the recoil killed itself or vice versa would you still get the EVs?
Just tested this on my game, You don't get the Ev's.