Files
swift-mirror/test/Interpreter/llvm_link_time_opt.swift
Daniel Rodríguez Troitiño 9a24aaf714 [android] Disable a test that needs LTO support.
With Gold from the Android NDK setting up LTO is complicated, and the CI
machines are not setup for it.

Disable this test in platforms that do not use LLD and LTO (which is
basically Android with older NDKs).
2020-09-27 20:22:41 -07: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