You can also toggle an Output pin by writing a 1 to the INPUT port.
Example: Toggle D7, which had been to an output in setup()
In loop, use (for a 328P, where PORTD = D7 to D0)):
PIND = 0b10000000; // toggle bit 7/ If it was High, this make it Low. If it was Low, this make it High.