add reduced test case

crash seems to be in the type legalizer

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>