test for fried gpio pin

I think I fried a gpio pin. Is there a test that I can run to tell me it the pin is still working?

What do you think, how did you kill the pin? Feeding power into a GPIO while it is configured as output typically kills the whole CPU, not only the single IO.