PIC12F675 GP4 doesn't work

You have configured the PIC to output the internal clock signal on GP4 using

#pragma config FOSC = INTRCCLK

Replace INTRCCLK with INTRCIO.


Just to add to Spehro's correct answer:

Since the microcontroller you are using has only 8 pins, they necessarily must share functionality to provide the various features that the device is capable of.

I just wanted to provide a sort of "roadmap" to help explain how the configuration works.

Check out the pin function diagram on the datasheet page 2:

Datasheet pin diagram

You'll notice that physical pin 3 has at least five functions: GP4, AN3, !T1G, OSC2, and CLKOUT. Sometimes you have to specify in the configuration which function the pin should have. It's definitely not always clear. I find it helpful to search the datasheet for references to the register or pin function I'm having issues with.

Here's an excerpt from page 52 on which GP4 was found:

Datasheet FOSC specifics

Microcontrollers very often can operate using an internal oscillator if they have one, or from an external oscillator such as a crystal. Even further, they can connect their internal oscillator to a pin for clocking other devices. The configuration register here has three bits (FOSC) that determine how this gets set up.

If you look at the two modes listed with values 101 and 100, they both specify to use the internal oscillator, but one of the options connects GP4 to the clock, where the other maintains its function as GPIO.

The defined constants INTRCCLK and INTRCIO Spehro mentioned should reflect these values.