v3.8.0.1
Gains (Losses) Related to Cash Flow Hedges (Detail) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2017
Dec. 31, 2016
Effective Portion        
Gains recognized in other comprehensive income (loss) (net of tax of $1, $3, $1, and $4) $ 10 $ 449 $ 15 $ 484
Designated Hedge Derivatives | Foreign Exchange Contracts        
Effective Portion        
Gains reclassified from accumulated other comprehensive income (loss) into revenue 19 172 130 247
Amount Excluded from Effectiveness Assessment and Ineffective Portion        
Losses recognized in other income (expense), net $ (73) $ (84) $ (164) $ (154)