Files
swift-mirror/test/embedded/arc-opt-runtime-helpers.swift
Doug Gregor 404a207de3 Weaked assertions in LLVM ARC optimizations for (Embedded) Swift
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.
2026-07-14 11:56:46 -07:00

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"