mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
482 B
Swift
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"}
|