mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is required to correctly use the mock SDK when the SDK overlay is built and tested separately. (Otherwise, the mock SDK might not get used, because the overlay SDK options would expand from the %-substitution, appear first on the command line, and shadow the mock SDK in the search path). Swift SVN r25185
18 lines
625 B
Swift
18 lines
625 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -import-objc-header %S/Inputs/bridging-header.h -parse -emit-objc-header-path %t/pragma-clang.h
|
|
// RUN: %check-in-clang -fsyntax-only -Werror %t/pragma-clang.h
|
|
// RUN: FileCheck %s < %t/pragma-clang.h
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK: #pragma clang diagnostic push
|
|
// CHECK: #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
// CHECK: @interface Test
|
|
@objc class Test : TestProto {
|
|
var str: String = ""
|
|
var strongProp: AnyObject?
|
|
}
|
|
// CHECK: #pragma clang diagnostic pop
|
|
// CHECK-NOT: clang diagnostic
|