South Carolina voters will choose nominees for governor and other offices in a state primary on Tuesday, the latest test of President Donald Trump's sway over Republican voters.