As long as they are free ranging and have many choices out there, chickens do well avoiding bad stuff. If you have them confined and offer only toxic 'goodies', they will figure things out.
Most of us have some toxic plants in areas our birds explore, and they find good stuff and avoid the nightshade, poison hemlock, and other delights out there. Fortunately!
Mary