In the 1950’s, the Canadian government developed the ‘fruit machine’ to identify gay men and remove them from their jobs in the civil service, military, and police. – WTF Fun Facts
Source: https://en.wikipedia.org/wiki/Fruit_machine_(homosexuality_test)