[stdlib] Sanity checks for empty array buffer
[stdlib] Sanity checks for empty array buffer

Swift SVN r23190

tjw/swift,therealbnut/swift,nathawes/swift,CodaFi/swift,swiftix/swift,frootloops/swift,gottesmm/swift,codestergit/swift,hughbe/swift,JaSpa/swift,devincoughlin/swift,kentya6/swift,jtbandes/swift,harlanhaskins/swift,IngmarStein/swift,brentdax/swift,kperryua/swift,huonw/swift,xedin/swift,KrishMunot/swift,Ivacker/swift,IngmarStein/swift,manavgabhawala/swift,cbrentharris/swift,cbrentharris/swift,devincoughlin/swift,jtbandes/swift,arvedviehweger/swift,bitjammer/swift,zisko/swift,practicalswift/swift,benlangmuir/swift,MukeshKumarS/Swift,codestergit/swift,SwiftAndroid/swift,xedin/swift,tkremenek/swift,xwu/swift,shahmishal/swift,rudkx/swift,karwa/swift,allevato/swift,kusl/swift,JGiola/swift,deyton/swift,hughbe/swift,uasys/swift,sdulal/swift,JGiola/swift,MukeshKumarS/Swift,xedin/swift,cbrentharris/swift,brentdax/swift,swiftix/swift,adrfer/swift,aschwaighofer/swift,felix91gr/swift,sdulal/swift,shahmishal/swift,return/swift,amraboelela/swift,jopamer/swift,russbishop/swift,kusl/swift,practicalswift/swift,calebd/swift,tardieu/swift,calebd/swift,parkera/swift,SwiftAndroid/swift,roambotics/swift,amraboelela/swift,danielmartin/swift,uasys/swift,arvedviehweger/swift,modocache/swift,OscarSwanros/swift,manavgabhawala/swift,felix91gr/swift,emilstahl/swift,devincoughlin/swift,khizkhiz/swift,codestergit/swift,aschwaighofer/swift,johnno1962d/swift,huonw/swift,therealbnut/swift,gmilos/swift,atrick/swift,gregomni/swift,tardieu/swift,kstaring/swift,hughbe/swift,ken0nek/swift,sschiau/swift,practicalswift/swift,jopamer/swift,atrick/swift,MukeshKumarS/Swift,zisko/swift,mightydeveloper/swift,Ivacker/swift,alblue/swift,uasys/swift,khizkhiz/swift,danielmartin/swift,aschwaighofer/swift,tinysun212/swift-windows,adrfer/swift,allevato/swift,zisko/swift,jtbandes/swift,aschwaighofer/swift,devincoughlin/swift,frootloops/swift,swiftix/swift,jckarter/swift,slavapestov/swift,bitjammer/swift,kstaring/swift,xwu/swift,tinysun212/swift-windows,gregomni/swift,felix91gr/swift,tjw/swift,shajrawi/swift,stephentyrone/swift,SwiftAndroid/swift,manavgabhawala/swift,lorentey/swift,deyton/swift,huonw/swift,Ivacker/swift,LeoShimonaka/swift,glessard/swift,danielmartin/swift,stephentyrone/swift,jopamer/swift,OscarSwanros/swift,emilstahl/swift,IngmarStein/swift,xedin/swift,devincoughlin/swift,nathawes/swift,Jnosh/swift,frootloops/swift,gribozavr/swift,codestergit/swift,amraboelela/swift,milseman/swift,OscarSwanros/swift,gregomni/swift,ahoppen/swift,nathawes/swift,johnno1962d/swift,benlangmuir/swift,swiftix/swift.old,gmilos/swift,codestergit/swift,slavapestov/swift,therealbnut/swift,kstaring/swift,natecook1000/swift,return/swift,jmgc/swift,amraboelela/swift,sdulal/swift,jopamer/swift,Ivacker/swift,jtbandes/swift,felix91gr/swift,bitjammer/swift,shajrawi/swift,swiftix/swift,codestergit/swift,JaSpa/swift,hooman/swift,glessard/swift,swiftix/swift,kstaring/swift,manavgabhawala/swift,gottesmm/swift,MukeshKumarS/Swift,lorentey/swift,bitjammer/swift,swiftix/swift.old,calebd/swift,roambotics/swift,airspeedswift/swift,sdulal/swift,devincoughlin/swift,felix91gr/swift,slavapestov/swift,slavapestov/swift,calebd/swift,SwiftAndroid/swift,allevato/swift,Jnosh/swift,xwu/swift,austinzheng/swift,swiftix/swift,rudkx/swift,atrick/swift,cbrentharris/swift,JaSpa/swift,apple/swift,russbishop/swift,gottesmm/swift,glessard/swift,CodaFi/swift,nathawes/swift,Ivacker/swift,jopamer/swift,jopamer/swift,alblue/swift,gottesmm/swift,kstaring/swift,lorentey/swift,KrishMunot/swift,KrishMunot/swift,dduan/swift,natecook1000/swift,cbrentharris/swift,glessard/swift,brentdax/swift,parkera/swift,sschiau/swift,shahmishal/swift,alblue/swift,dduan/swift,rudkx/swift,ken0nek/swift,return/swift,shajrawi/swift,emilstahl/swift,LeoShimonaka/swift,alblue/swift,austinzheng/swift,swiftix/swift.old,IngmarStein/swift,tinysun212/swift-windows,natecook1000/swift,therealbnut/swift,sschiau/swift,parkera/swift,kentya6/swift,benlangmuir/swift,tinysun212/swift-windows,adrfer/swift,mightydeveloper/swift,brentdax/swift,OscarSwanros/swift,kperryua/swift,cbrentharris/swift,kusl/swift,OscarSwanros/swift,tardieu/swift,lorentey/swift,danielmartin/swift,parkera/swift,shahmishal/swift,roambotics/swift,danielmartin/swift,austinzheng/swift,cbrentharris/swift,gregomni/swift,atrick/swift,kstaring/swift,sdulal/swift,arvedviehweger/swift,huonw/swift,huonw/swift,johnno1962d/swift,jckarter/swift,Jnosh/swift,rudkx/swift,gottesmm/swift,jtbandes/swift,felix91gr/swift,glessard/swift,rudkx/swift,frootloops/swift,swiftix/swift.old,zisko/swift,allevato/swift,lorentey/swift,Ivacker/swift,LeoShimonaka/swift,slavapestov/swift,milseman/swift,gribozavr/swift,rudkx/swift,arvedviehweger/swift,devincoughlin/swift,CodaFi/swift,russbishop/swift,gottesmm/swift,MukeshKumarS/Swift,swiftix/swift.old,johnno1962d/swift,xwu/swift,deyton/swift,practicalswift/swift,benlangmuir/swift,djwbrown/swift,swiftix/swift.old,tjw/swift,OscarSwanros/swift,CodaFi/swift,return/swift,harlanhaskins/swift,frootloops/swift,jmgc/swift,khizkhiz/swift,JGiola/swift,jmgc/swift,huonw/swift,sdulal/swift,allevato/swift,airspeedswift/swift,JGiola/swift,ahoppen/swift,dreamsxin/swift,practicalswift/swift,kusl/swift,djwbrown/swift,allevato/swift,hughbe/swift,aschwaighofer/swift,parkera/swift,swiftix/swift.old,IngmarStein/swift,shajrawi/swift,practicalswift/swift,khizkhiz/swift,stephentyrone/swift,uasys/swift,practicalswift/swift,ben-ng/swift,kperryua/swift,shahmishal/swift,kentya6/swift,CodaFi/swift,kperryua/swift,nathawes/swift,therealbnut/swift,arvedviehweger/swift,brentdax/swift,shajrawi/swift,huonw/swift,tkremenek/swift,jmgc/swift,dduan/swift,ben-ng/swift,jmgc/swift,felix91gr/swift,jtbandes/swift,karwa/swift,dduan/swift,amraboelela/swift,Jnosh/swift,xedin/swift,emilstahl/swift,mightydeveloper/swift,djwbrown/swift,ben-ng/swift,gmilos/swift,manavgabhawala/swift,adrfer/swift,austinzheng/swift,gmilos/swift,nathawes/swift,zisko/swift,ken0nek/swift,MukeshKumarS/Swift,emilstahl/swift,dduan/swift,ken0nek/swift,gmilos/swift,milseman/swift,gribozavr/swift,parkera/swift,lorentey/swift,johnno1962d/swift,KrishMunot/swift,russbishop/swift,apple/swift,tkremenek/swift,manavgabhawala/swift,russbishop/swift,emilstahl/swift,ben-ng/swift,return/swift,xedin/swift,ahoppen/swift,austinzheng/swift,gribozavr/swift,natecook1000/swift,gribozavr/swift,jckarter/swift,modocache/swift,sschiau/swift,shahmishal/swift,MukeshKumarS/Swift,karwa/swift,codestergit/swift,gribozavr/swift,parkera/swift,modocache/swift,tjw/swift,apple/swift,LeoShimonaka/swift,hooman/swift,KrishMunot/swift,djwbrown/swift,stephentyrone/swift,hooman/swift,calebd/swift,hughbe/swift,xedin/swift,natecook1000/swift,mightydeveloper/swift,cbrentharris/swift,lorentey/swift,arvedviehweger/swift,natecook1000/swift,CodaFi/swift,alblue/swift,apple/swift,xwu/swift,jopamer/swift,IngmarStein/swift,manavgabhawala/swift,frootloops/swift,tkremenek/swift,atrick/swift,djwbrown/swift,khizkhiz/swift,apple/swift,kusl/swift,bitjammer/swift,mightydeveloper/swift,danielmartin/swift,tardieu/swift,JaSpa/swift,gregomni/swift,shajrawi/swift,stephentyrone/swift,slavapestov/swift,aschwaighofer/swift,austinzheng/swift,jmgc/swift,danielmartin/swift,shajrawi/swift,IngmarStein/swift,xwu/swift,ben-ng/swift,JaSpa/swift,ahoppen/swift,deyton/swift,ken0nek/swift,allevato/swift,emilstahl/swift,JaSpa/swift,dduan/swift,tardieu/swift,roambotics/swift,kperryua/swift,airspeedswift/swift,jmgc/swift,swiftix/swift.old,KrishMunot/swift,jckarter/swift,jckarter/swift,atrick/swift,alblue/swift,harlanhaskins/swift,kstaring/swift,karwa/swift,Jnosh/swift,gregomni/swift,modocache/swift,dduan/swift,SwiftAndroid/swift,Jnosh/swift,calebd/swift,gmilos/swift,airspeedswift/swift,jtbandes/swift,amraboelela/swift,CodaFi/swift,khizkhiz/swift,Ivacker/swift,modocache/swift,arvedviehweger/swift,tkremenek/swift,harlanhaskins/swift,airspeedswift/swift,djwbrown/swift,kentya6/swift,benlangmuir/swift,russbishop/swift,tjw/swift,benlangmuir/swift,dreamsxin/swift,russbishop/swift,uasys/swift,glessard/swift,djwbrown/swift,sschiau/swift,kperryua/swift,karwa/swift,therealbnut/swift,airspeedswift/swift,sdulal/swift,tkremenek/swift,airspeedswift/swift,johnno1962d/swift,hooman/swift,roambotics/swift,gribozavr/swift,practicalswift/swift,kperryua/swift,kusl/swift,deyton/swift,SwiftAndroid/swift,ken0nek/swift,milseman/swift,ahoppen/swift,tardieu/swift,karwa/swift,LeoShimonaka/swift,hughbe/swift,kentya6/swift,mightydeveloper/swift,kusl/swift,ken0nek/swift,tjw/swift,LeoShimonaka/swift,return/swift,uasys/swift,return/swift,Ivacker/swift,JGiola/swift,kusl/swift,modocache/swift,mightydeveloper/swift,ahoppen/swift,jckarter/swift,bitjammer/swift,tinysun212/swift-windows,jckarter/swift,zisko/swift,natecook1000/swift,harlanhaskins/swift,kentya6/swift,sschiau/swift,mightydeveloper/swift,khizkhiz/swift,shahmishal/swift,stephentyrone/swift,bitjammer/swift,brentdax/swift,brentdax/swift,tardieu/swift,parkera/swift,Jnosh/swift,kentya6/swift,LeoShimonaka/swift,sdulal/swift,hooman/swift,emilstahl/swift,hooman/swift,milseman/swift,OscarSwanros/swift,roambotics/swift,shahmishal/swift,apple/swift,deyton/swift,johnno1962d/swift,sschiau/swift,amraboelela/swift,tkremenek/swift,gmilos/swift,JaSpa/swift,deyton/swift,adrfer/swift,calebd/swift,milseman/swift,shajrawi/swift,adrfer/swift,nathawes/swift,harlanhaskins/swift,xwu/swift,sschiau/swift,ben-ng/swift,xedin/swift,modocache/swift,frootloops/swift,milseman/swift,JGiola/swift,stephentyrone/swift,karwa/swift,slavapestov/swift,gottesmm/swift,uasys/swift,hughbe/swift,tjw/swift,aschwaighofer/swift,adrfer/swift,tinysun212/swift-windows,devincoughlin/swift,harlanhaskins/swift,zisko/swift,KrishMunot/swift,lorentey/swift,hooman/swift,LeoShimonaka/swift,gribozavr/swift,SwiftAndroid/swift,swiftix/swift,ben-ng/swift,tinysun212/swift-windows,therealbnut/swift,karwa/swift,austinzheng/swift,alblue/swift,kentya6/swift