Files
swift-mirror/test/Interpreter/llvm_link_time_opt.swift
2021-03-11 10:32:14 -08:00

14 lines
490 B
Swift

// UNSUPPORTED: OS=windows-msvc
// static library is not well supported yet on Windows
// REQUIRES: lld_lto
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -emit-library -static -lto=llvm-full -emit-module %S/Inputs/lto/module1.swift -working-directory %t
// RUN: %target-swiftc_driver -lto=llvm-full %s -I%t -L%t -lmodule1 -module-name main -o %t/main
// RUN: %llvm-nm --defined-only %t/main | %FileCheck %s
// CHECK-NOT: _$s7module120unusedPublicFunctionyyF
import module1