Files
swift-mirror/test/Interop/C/struct/foreign-reference-flag-deprecated.swift
Egor Zhdan 9178af3ec7 [cxx-interop] Enable foreign reference types in C interop
Most of the logic for C++ foreign reference types can be applied to C types as well. Swift had a compiler flag `-Xfrontend -experimental-c-foreign-reference-types` for awhile now which enables foreign reference types without having to enable C++ interop. This change makes it the default behavior.

Since we don't expect anyone to pass `experimental-c-foreign-reference-types` currently, this also removes the frontend flag.

rdar://150308819
2025-07-01 18:46:22 +01:00

6 lines
236 B
Swift

// RUN: %target-build-swift %s -I %S/Inputs/ -Xfrontend -experimental-c-foreign-reference-types 2>&1 | %FileCheck %s
// CHECK: <unknown>:0: warning: flag '-experimental-c-foreign-reference-types' is deprecated
import ForeignReference