Files
swift-mirror/test/Interop/Cxx/objc-correctness/custom-nsoptions.swift
Egor Zhdan 46f86f0870 [cxx-interop] Import custom NS_OPTIONS correctly
This changes the heuristic that we use to detect `CF_OPTIONS`/`NS_OPTIONS` instantiations in C++ language mode.

Since libraries sometimes declare custom option types that break the assumptions about the names of such types, this lifts the requirements on the type name.

rdar://113524090
rdar://113279214
2023-08-18 15:41:50 +01:00

8 lines
250 B
Swift

// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs -enable-objc-interop -enable-experimental-cxx-interop
// REQUIRES: objc_interop
import CustomNSOptions
let flags1: MyControlFlags = []
let flags2: MyControlFlags = [.first]