From ATO website...
A CGT event can happen to shares even if a change in their ownership is involuntary - for example, if the company in which you hold shares is taken over by or merges with another company. This may result in a capital gain or capital loss for you.