blob: d923a5703d616c28e70e7278bc1d824c2e3f5b80 [file] [log] [blame]
// RUN: %target-swift-frontend %s -module-name AutolinkingTest -F %S/Inputs -import-underlying-module -emit-ir | %FileCheck %s
// Linux uses a different autolinking mechanism, based on
// swift-autolink-extract. This file tests the Darwin mechanism.
// UNSUPPORTED: autolink-extract
// Use a type declared in the Clang part of the module.
public let y = Test()
// CHECK: !llvm.linker.options
// CHECK-NOT: !{!"-framework", !"AutolinkingTest"}
// CHECK: !{!{{"-lswiftCore"|"/DEFAULTLIB:swiftCore.lib"}}}
// CHECK-NOT: !{!"-framework", !"AutolinkingTest"}