Gains (Losses) Related to Cash Flow Hedges (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Mar. 31, 2018 |
Mar. 31, 2017 |
Mar. 31, 2018 |
Mar. 31, 2017 |
|
| Effective Portion | ||||
| Gains (losses) recognized in other comprehensive income (loss) (net of tax of $7, $3, $8, and $7) | $ 14 | $ (60) | $ 29 | $ 424 |
| Designated Hedge Derivatives | Foreign Exchange Contracts | ||||
| Effective Portion | ||||
| Gains reclassified from accumulated other comprehensive income (loss) into revenue | 8 | 167 | 138 | 414 |
| Amount Excluded from Effectiveness Assessment and Ineffective Portion | ||||
| Losses recognized in other income (expense), net | $ (62) | $ (121) | $ (226) | $ (275) |