mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update tests
This commit is contained in:
@@ -18,12 +18,11 @@ public func async_dead_arg_call(o: consuming AnyObject) async {
|
||||
|
||||
// CHECK-LABEL: sil [ossa] @async_dead_arg_call_lexical : {{.*}} {
|
||||
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] : @noImplicitCopy @_lexical @owned
|
||||
// CHECK: [[MOVE:%[^,]+]] = move_value [lexical] [[INSTANCE]]
|
||||
// CHECK: [[EXECUTOR:%[^,]+]] = enum $Optional<Builtin.Executor>, #Optional.none!enumelt
|
||||
// CHECK: [[CALLEE:%[^,]+]] = function_ref @async_callee
|
||||
// CHECK: apply [[CALLEE]]()
|
||||
// CHECK: hop_to_executor [[EXECUTOR]]
|
||||
// CHECK: destroy_value [[MOVE]]
|
||||
// CHECK: destroy_value [[INSTANCE]]
|
||||
// CHECK-LABEL: } // end sil function 'async_dead_arg_call_lexical'
|
||||
@_silgen_name("async_dead_arg_call_lexical")
|
||||
public func async_dead_arg_call_lexical(@_noEagerMove o: consuming AnyObject) async {
|
||||
|
||||
@@ -213,7 +213,7 @@ public func usePrespecializedThrowsEntryPoints() throws {
|
||||
// OPT-macosx: [[R9:%.*]] = unchecked_addr_cast [[R7]] : $*Array<Int> to $*Builtin.BridgeObject
|
||||
// OPT-macosx: [[A3:%.*]] = unchecked_bitwise_cast [[P4]] : $Array<Int> to $Builtin.BridgeObject
|
||||
// OPT-macosx: [[A4:%.*]] = unchecked_bitwise_cast [[P5]] : $Array<Float> to $Builtin.BridgeObject
|
||||
// OPT-macosx: [[F2]]([[R8]], [[R9]], [[A3]], [[A4]], [[P3]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject, @guaranteed Builtin.BridgeObject, Int64) -> (@out Builtin.BridgeObject, Int64, @out Builtin.BridgeObject) // user: %38
|
||||
// OPT-macosx: [[F2]]([[R8]], [[R9]], [[A3]], [[A4]], [[P3]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject, @guaranteed Builtin.BridgeObject, Int64) -> (@out Builtin.BridgeObject, Int64, @out Builtin.BridgeObject)
|
||||
// OPT: } // end sil function '$s22pre_specialize_layouts40usePresepcializedMultipleIndirectResults___2xs2ysy0a20_specialized_module_C09SomeClassC_AA0m5OtherN0Cs5Int64VSaySiGSaySfGtF'
|
||||
public final class SomeOtherClass {}
|
||||
public func usePresepcializedMultipleIndirectResults(_ c: SomeClass, _ d: SomeOtherClass, _ x: Int64, xs: [Int], ys: [Float]) {
|
||||
|
||||
@@ -124,7 +124,6 @@ public class Other {
|
||||
// CHECK: [[W1:%.*]] = witness_method $@opened("{{.*}}", any DerivedProtocol) Self, #DerivedProtocol.foo : <Self where Self : DerivedProtocol> (Self) -> () -> Int, [[O1]] : $*@opened("{{.*}}", any DerivedProtocol) Self : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
|
||||
// CHECK: apply [[W1]]<@opened("{{.*}}", any DerivedProtocol) Self>([[O1]]) : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
|
||||
// CHECK: struct_extract
|
||||
// CHECK: integer_literal
|
||||
// CHECK: builtin
|
||||
// CHECK: tuple_extract
|
||||
// CHECK: tuple_extract
|
||||
|
||||
@@ -91,7 +91,6 @@ tests.test("simpleVarTest") {
|
||||
expectTrue(_isUnique_native(&x))
|
||||
|
||||
var y = x
|
||||
expectFalse(_isUnique_native(&x))
|
||||
let _ = consume y
|
||||
expectTrue(_isUnique_native(&x))
|
||||
y = Klass()
|
||||
@@ -101,7 +100,6 @@ tests.test("simpleVarTest") {
|
||||
tests.test("simpleInoutVarTest") {
|
||||
func inOutTest(_ x: inout Klass) {
|
||||
var y = x
|
||||
expectFalse(_isUnique_native(&x))
|
||||
let _ = consume y
|
||||
expectTrue(_isUnique_native(&x))
|
||||
y = Klass()
|
||||
|
||||
Reference in New Issue
Block a user