This depends on the company's articles of association and any shareholder agreements. For example, the company might have the right to buy the shares back from your estate (ie the assets you leave when you die).
Apart from that, the shares will form part of your estate. Depending on the overall value of your estate, there may be a liability to inheritance tax. Professional advice and careful tax planning can help to minimise any liability.