Files
swift-mirror/test/ClangImporter/private_frameworks_autolink.swift
Bruno Cardoso Lopes 8cb008481c [ClangImporter] Use appropriate link name for export_as
rdar://problem/38269782
2018-04-16 16:31:05 -07:00

17 lines
861 B
Swift

// RUN: %empty-directory(%t)
// FIXME: BEGIN -enable-source-import hackaround
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -emit-module -o %t %clang-importer-sdk-path/swift-modules/CoreGraphics.swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-module -o %t %clang-importer-sdk-path/swift-modules/Foundation.swift
// FIXME: END -enable-source-import hackaround
// Check that the autolink information is appropriate (do not link against SomeKitCore).
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-ir -o %t/private_frameworks_autolink.ll -F %S/Inputs/privateframeworks/withprivate-autolink %s
// RUN: %FileCheck %s < %t/private_frameworks_autolink.ll
// CHECK-NOT: !{!"-framework", !"SomeKitCore"}
// REQUIRES: objc_interop
import SomeKitCore
import SomeKit