Anecdotal, but I had a job offer for a software engineering position with McKesson back in 2010 and they told me I would have to pass a drug test in order to obtain the position.
I was a marijuana user at the time, so I took a competing offer that paid less (though ended up being a much better fit for me -- still with the company now 11 years later)