Are you interested in only those cases where a secondary endpoint later became a primary endpoint, or are you interested in the more general cases of drugs that failed in their first indication but succeeded in a subsequent indication? The latter set includes many examples of which Viagra is perhaps the most famous.
“The efficient-market hypothesis may be the foremost piece of B.S. ever promulgated in any area of human knowledge!”