Coca Cola did not contain cocaine. It did contain a small amount of coca leaves, but that is not cocaine.
from:
"Let's get a few things straight. Coca-Cola has never contained cocaine. Ever. It did contain coca leaves during the first 20 years or so of production but that is not the same as cocaine. Cocaine is the hydrolyzed product of coca leaves.
Cocaine, and the active substances of coca leaves, does not react well to acidic environments. In fact, it requires a basic environment for the body to properly absorb it. Since both coca cola and the stomach are highly acidic, the effects of cocaine in a drink would most likely have been very mild if at all detectable unless vast quantities were consumed.
Taking cocaine orally generally numbs your tongue and gums, you might have felt that and perhaps a slight constriction of blood vessels in the mouth but I doubt any other effects would be detectable from consumption of coca cola."
And all traces of "cocaine" were removed from Coca Cola in 1929. So people (including children) have no had Coca Cola with cocaine in it in nearly a century.