mirror of
https://github.com/apple/swift.git
synced 2026-10-26 20:15:53 +01:00
Weaken/remove some assertions in the LLVM arc passes that would end up triggering when the _retain_n/_release_n operators were defined in (Embedded) Swift.
17 lines
505 B
Swift
17 lines
505 B
Swift
// RUN: %target-swift-frontend -emit-ir -O -wmo -parse-as-library \
|
|
// RUN: -enable-experimental-feature Embedded \
|
|
// RUN: -enable-experimental-feature CodeGenerationModel=interface \
|
|
// RUN: %s -o - | %FileCheck %s
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_feature_Embedded
|
|
// REQUIRES: swift_feature_CodeGenerationModel
|
|
|
|
public final class C { public var x: Int = 0 }
|
|
|
|
public func use(_ a: C, _ b: C) -> Int {
|
|
return a.x &+ b.x
|
|
}
|
|
|
|
// CHECK: define {{.*}} @"$e{{.*}}3useySiAA1CC_AEtF"
|