[PhaseOrdering] add test for issue #50778; NFC

Several different passes are involved to get the expected IR,
and we don't want that to break again.

GitOrigin-RevId: cdc012fa2696434689c872abc4797a1ee8284ddf
1 file changed