It depends on the region. In Shanghai the 'follow the contract' rule applies: compensation is payable only if the employment contract provides for it. In most other regions (Beijing, Guangdong, Jiangsu, Shandong, Chongqing) the courts apply the Labor Contract Law uniformly, so an employee with a valid work permit can claim statutory compensation.
Nationwide (all cities)
Two positions on the law
The legal landscape is split. There are two positions on whether the Labor Contract Law's compensation rules apply to foreign employees. In Shanghai, the 'follow the contract' rule applies: the courts look first at whether the contract provides for compensation, because compensation is not among the five mandatory labor standards (minimum wage, working hours, rest, workplace safety, social insurance) that the Employment Regulations make compulsory for foreigners.
Most regions apply the law uniformly
In most other regions, the courts apply the Labor Contract Law uniformly. The reasoning is that the law does not carve out an exception for foreigners, and a foreigner with a valid work permit who has established a labor relationship is treated as an ordinary employee, entitled to the same compensation. This is the majority view in Beijing, Guangdong, Jiangsu, Shandong, and Chongqing.
What this means for you
What this means for you. If you are laid off (a redundancy or an employer-initiated termination), whether you can claim compensation turns on where you work. In Shanghai, check your contract; in most other places, the statutory compensation under Article 46–47 applies.