@DrDiettrich Yes, I know that. This is a test program to demonstrate what happens when a watchdog timeout occurs, so I have deliberately commented out the wdt_reset.
What I want to happen is that the ATMEGA resets when a watchdog timeout occurs. What actually happens is that it is bricked.