r18312 fixed <rdar://problem/15293354> Weak reference to class protocol crashes with "SIL verification failed: isa operand must be a class type"
r18312 fixed <rdar://problem/15293354> Weak reference to class protocol crashes with "SIL verification failed: isa operand must be a class type"

Add the testcase.



Swift SVN r18316

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