An operating current is supplied from a power supply node to an internal circuit.
In a test mode, current supply from a power supply to the power supply node is
stopped by a current switch, and an externally adjustable test current is supplied
to the power supply node. The test current is set in accordance with an acceptable
value of a leakage current in the internal circuit. Evaluation is made as to whether
the leakage current in the internal circuit is not greater than the acceptable
value, in accordance with an output of a voltage comparison circuit detecting a
voltage drop at the power supply node.