Testing quantum mechanics against macroscopic realism using the output of {chi}{sup (2)} nonlinearity