Identifying stars of mass >150 M⊙ from their eclipse by a binary companion