A numerical experiment relevant to line-tied reconnection in two-ribbon flares