Files
swift-mirror/test/SILGen/preconcurrency-bridged-return.swift
Joe Groff 0e94c63494 SILGen: Have emitSemanticStore cast off concurrency annotations.
If a function is being semantically treated as having different concurrency
annotations because of a `@preconcurrency` import or language mode setting,
then SILGen may try to store an argument or result for a call using a value
that differs only in concurrency annotations, which can be safely bitcast
away.

Fixes rdar://154520999
2025-07-16 12:41:01 -07:00

9 lines
225 B
Swift

// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/preconcurrency-bridged-return.h -swift-version 5 %s
//
// REQUIRES: objc_interop
func test(x: TestClass) {
let foo = x.foo()
}