I would guess you would credit for both segments since you now have two segments in the reservation. I do this every now and then from IAH to Europe where every flight seems to be a single flight from IAH but a stop or plane change in EWR. I do it so that I can at least upgrade on the domestic leg. Sometimes, it takes a few calls to convince an agent to do it.