mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user