Highlights ► A joint test of linearity and nonstationarity is proposed. ► Its asymptotic distribution is derived and local power investigated. ► Its distribution is nonstandard but free of nuisance parameters. ► Its finite sample behaviour is investigated through simulations. ► It is shown to perform well across a variety of scenarios.