mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Clean up a few more nocapture in tests
This commit is contained in:
@@ -19,14 +19,14 @@ func getNE(_ holder: Holder) -> NE
|
||||
@_lifetime(&holder)
|
||||
func getMutNE(_ holder: inout Holder) -> NE
|
||||
|
||||
// The parameter cannot be 'nocapture'.
|
||||
// The parameter cannot be 'captures(none)'.
|
||||
//
|
||||
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A17testAddressableInyAA2NEVAA6HolderVF"(ptr noalias %0)
|
||||
public func testAddressableIn(_ holder: Holder) -> NE {
|
||||
getNE(holder)
|
||||
}
|
||||
|
||||
// The parameter cannot be 'nocapture'.
|
||||
// The parameter cannot be 'captures(none)'.
|
||||
//
|
||||
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A20testAddressableInoutyAA2NEVAA6HolderVzF"(ptr %0)
|
||||
public func testAddressableInout(_ holder: inout Holder) -> NE {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// REQUIRES: PTRSIZE=64
|
||||
|
||||
// CHECK: define {{.*}}swiftcc void @"$s13rdar1499856334DateV1a1b1c1d1e1fACSiSg_A5JtcfC"(ptr noalias{{( nocapture)?}} writeonly sret(%T13rdar1499856334DateV){{( captures\(none\))?}}{{.*}} %0, i64 %1, i8 %2, i64 %3, i8 %4, i64 %5, i8 %6, i64 %7, i8 %8, i64 %9, i8 %10, i64 %11, i8 %12)
|
||||
// CHECK: define {{.*}}swiftcc void @"$s13rdar1499856334DateV1a1b1c1d1e1fACSiSg_A5JtcfC"(ptr noalias writeonly sret(%T13rdar1499856334DateV) captures(none){{.*}} %0, i64 %1, i8 %2, i64 %3, i8 %4, i64 %5, i8 %6, i64 %7, i8 %8, i64 %9, i8 %10, i64 %11, i8 %12)
|
||||
// CHECK: entry:
|
||||
// CHECK: store i64 %1
|
||||
// CHECK: getelementptr inbounds{{.*}} i8, ptr %0, i64 8
|
||||
|
||||
Reference in New Issue
Block a user