SCL allows the reading and writing of program memory location label names from the software running on the processor. To access these labels, you have to tell SCL about the labels by declaring shared labels in the configuration section.
shared label labelName;
"main" is a popular label. Here is an example.
configuration for "PIC16F877" isshared label main;end configuration;testbench for "PIC16F877" isbeginprocess isbeginwait until PC == main;report("reached main");end process;end testbench;