It's a decent technique to check on compilers, but it's older than that. Arial Faigon discusses that approach in an undated blog post:
http://www.yendor.com/testing/#compiler
I don't know the date, but I cited it in my 2009 dissertation: https://dwheeler.com/trusting-trust/dissertation/html/wheele...