add a trivial test for SIL parsing the assign instruction, and fix

the bug exposed by it.  :-/


Swift SVN r7147
This commit is contained in:
Chris Lattner
2013-08-12 14:38:42 +00:00
parent c8f01a0bf3
commit eae021c7ad
2 changed files with 8 additions and 1 deletions

View File

@@ -838,3 +838,10 @@ bb0(%0 : $ConcreteClass):
release %1#0 : $Builtin.ObjectPointer
return %5 : $ClassP
}
sil @test_assign : $(x : Int64, y : [byref] Int64) -> () { // CHECK-LABEL: sil @test_assign
bb0(%0 : $Int64, %1 : $*Int64):
assign %0 to %1 : $*Int64 // CHECK: assign %0 to %1
unreachable
}