Add test to make sure that a int-to-ptr can be merged correctly.