A nonparametric large sample test is proposed for testing the linearity of a regression model with independent and identically distributed errors satisfying only a very mild tail condition. The statistic is based on the functional least squares estimator of the slope vector. The test is applied to the stack loss data.