Not sure about meeting the definition of mercenaries, but a contingent of French soldiers manned a cannon at the Battle of Palmito Ranch in 1865.