XML 117 R102.htm IDEA: XBRL DOCUMENT v3.7.0.1
Commitments - Additional Information (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2017
Jun. 30, 2016
Jun. 30, 2015
Capital Leases      
Commitments [Line Items]      
Additional purchase obligations for capital leases executed but not yet recorded $ 3,200    
Other Current Liabilities      
Commitments [Line Items]      
Current capital lease obligations 113 $ 25  
Other Long-term Liabilities      
Commitments [Line Items]      
Long-term capital lease obligations 2,400 761  
Buildings      
Commitments [Line Items]      
Rental expense for facilities operating leases 1,300 $ 1,000 $ 989
Building, Building Improvements and Leasehold Improvements      
Commitments [Line Items]      
Committed for construction of new buildings, building improvements and leasehold improvements $ 1,100