blob: 1546ce07fb2c5a51f4b722d3f69a07bd3b11534c [file] [log] [blame]
// RUN: rm -rf %t
// RUN: mkdir -p %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: !{{.*}} = !{i32 6, !"Linker Options", !{{.*}}}
// CHECK-DAG: !{{.*}} = !{!"-lswiftCore"}
// CHECK-DAG: !{{.*}} = !{!"-lobjc"}