My dog will eat almost anything. If they don't think it's good they will pass on it. If it doesn't agree with him it will come back out rather quickly from either end. He just ate what looked like a month old flattened piece of food on the trail the other day, he is still kicking.
I'm not a vet or doctor so don't rely on what I said.