It looks like the U-2R took flew test flights off several different carriers.
This is from "Skunk Works Digest".
From: JOHN SZALAY <email@example.com>
Date: Sat, 2 Mar 96 16:12:54 EST
Subject: RE: U2 Carrier Ops
> From:"firstname.lastname@example.org" "Mark E. Schmidt"
> RE:Subj: U2 Carrier Ops
> On wings this evening I saw a U2 land and take off from an aircraft carrier.
> I am not aware of any U2 variant with folding wings, but cannot imagine
> leaving one uncovered on an open deck for long. U2 is way to wide to fit
> on any elevator of an aircraft carrier I've been on (the largest being
> CVA-63, the Kitty Hawk - *sh_ __y kitty*).
According to Jay Miller's book on the U-2, The Kitty Hawk itself was used
in 1963 by the CIA for touch & go's by 2 agency U-2A's (Project Seeker)
also USS RANGER 1963 & 1964
> Did U2's stay on board long enough to warrant removing wings to stow on
> hangar deck, or . .. .
According to Lockheed test pilot Bill Park, the outer 70" of the U-2R wings
can be folded and by careful placement on the USS America's elevator and
was able to be taken to the hanger deck.
( REF: The Hook magazine article quoted in Jay Millers U-2 book)
(on page 62 of Jay Millers U2 book, there are 2 pictures of NASA's ER-2
# 706 with the wing tips folded, according to the caption, the ER-2, TR-1A
and the U2C all had folding wing tips & the G models were C's with
tailhooks added for carrier use.)
From: Ben Rich's book "Skunk Works" as well as Jay Miller's book.
the U-2G launched and recovered from USS RANGER & was used to monitor
the French nuclear tests at Mururoa Atoll in Late 1963 & early 1964
since the tests take place over a several week time period, I suspect
since the "G" was a "C" with folding wing tips, it was probably stowed
on the hanger deck until needed.
PS: had to go digging in the reference corner of my bookshelf to verify
the facts on this one, I remember the folding wing tips, but really had to
dig for the books & pages...
Note: The U-2G that John Szalay mentions in response to the question should read U-2R. He does correct himself a little later in the posted link.