Producers of metals, grains and other raw materials ticked up as traders weighed the outlook for inflation.

Consumer prices were up 3.5% in June from a year earlier, beating expectations and improving from the 4.2% inflation rate in May, as a drop in gasoline prices offset unchanged core prices, excluding food and energy.

Gold futures tested the $4,000-per-troy-ounce level after the U.S. and Iran traded a fresh round of attacks over the weekend.

Write to Rob Curran at rob.curran@dowjones.com

(END) Dow Jones Newswires