mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This makes sure that we can emit a pch from a C++ header that uses `CF_OPTIONS`. rdar://112225263
17 lines
651 B
Swift
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]
|