Files
swift-mirror/test/IRGen/linker_options_objc.swift
Jordan Rose 2b7ab7d8d1 [test] Update autolinking tests to match LLVM.
The test part of 90ca8f119a, which went in early to unblock the build.
2017-07-25 14:57:27 -07:00

15 lines
482 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -emit-module -o %t -module-name Empty -module-link-name swiftEmpty %S/../Inputs/empty.swift
// RUN: %target-swiftc_driver %s -I %t -emit-ir | %FileCheck %s
// REQUIRES: objc_interop
import Empty
// Check that libobjc is always autolinked together with libswiftCore on
// platforms that support Objective-C.
// CHECK: !llvm.linker.options =
// CHECK-DAG: !{{.*}} = !{!"-lswiftCore"}
// CHECK-DAG: !{{.*}} = !{!"-lobjc"}