I have on occasion received full first-class credit on an upgraded coach (economy, to our European friends) ticket. It's nice when it happens, but I don't base my award redemption or elite qualification plans on it.
(Before someone tells me that these bonus miles don't count toward elite status, AA has an alternative qualification scheme in which you receive more credit for paid front cabin.)