Files
swift-mirror/test/Interop/Cxx/objc-correctness/custom-nsoptions.swift
Egor Zhdan 6a2f10a388 [cxx-interop] Refactor: do not rely on Clang module importer being available
This makes sure that we can emit a pch from a C++ header that uses `CF_OPTIONS`.

rdar://112225263
2023-09-18 21:54:11 +01:00

17 lines
651 B
Swift

// RUN: rm -rf %t
// RUN: mkdir -p %t/pch
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown -I %S/Inputs -enable-objc-interop -enable-experimental-cxx-interop
// RUN: %target-swift-frontend -emit-pch -enable-objc-interop -enable-experimental-cxx-interop -o %t/pch/customNSOptions.pch %S/Inputs/customNSOptions.h
// RUN: %target-typecheck-verify-swift -D BRIDGING_HEADER -I %S/Inputs -import-objc-header %t/pch/customNSOptions.pch -enable-objc-interop -enable-experimental-cxx-interop %s
// REQUIRES: objc_interop
#if !BRIDGING_HEADER
import CustomNSOptions
#endif
let flags1: MyControlFlags = []
let flags2: MyControlFlags = [.first]