mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These were added in https://github.com/swiftlang/swift/pull/81375 (and several other follow-up PRs because we missed a few places) and are no longer needed.
20 lines
905 B
Swift
20 lines
905 B
Swift
|
|
// RUN: %target-swift-frontend -module-name runtime_calling_conventions -parse-as-library -emit-ir %s | %FileCheck %s
|
|
// RUN: %target-swift-frontend -module-name runtime_calling_conventions -parse-as-library -O -emit-ir %s | %FileCheck --check-prefix=OPT-CHECK %s
|
|
|
|
// Test that runtime functions are invoked using the new calling convention.
|
|
|
|
public class C {
|
|
}
|
|
|
|
// CHECK-LABEL: define {{(dllexport )?}}{{(protected )?}}swiftcc void @"$s27runtime_calling_conventions3fooyyAA1CCF"(ptr %0)
|
|
// Check that runtime functions use a proper calling convention.
|
|
// CHECK-NOT: call void {{.*}} @swift_release
|
|
|
|
// OPT-CHECK-LABEL: define {{(dllexport )?}}{{(protected )?}}swiftcc void @"$s{{(27|28)}}runtime_calling_conventions3fooyyAA1CCF"(ptr readnone captures(none) %0)
|
|
// Check that runtime functions use a proper calling convention.
|
|
// OPT-CHECK-NOT: tail call void @swift_release
|
|
|
|
public func foo(_ c: C) {
|
|
}
|