Massive stars in the field and associations of the magellanic clouds: The upper mass limit, the initial mass function, and a critical test of main-sequence stellar evolutionary theory | doi.page