Gains (Losses) on Fair Value Hedges and Related Hedged Items (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
|
| Foreign Exchange Contracts | |||
| Derivative Instruments, Gain (Loss) [Line Items] | |||
| Derivatives | $ 441 | $ (797) | $ 741 |
| Hedged items | (386) | 838 | (725) |
| Total amount of ineffectiveness | 55 | 41 | 16 |
| Equity Contracts | |||
| Derivative Instruments, Gain (Loss) [Line Items] | |||
| Derivatives | (74) | (76) | (107) |
| Hedged items | 74 | 76 | 107 |
| Total amount of ineffectiveness | 0 | 0 | 0 |
| Amount of equity contracts excluded from effectiveness assessment | $ (80) | $ (10) | $ 0 |