mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also, fix lit.cfg for running the test suite natively in Android and mark one SILOptimizer executable_test as such.
21 lines
794 B
Swift
21 lines
794 B
Swift
// UNSUPPORTED: OS=windows-msvc
|
|
// static library is not well supported yet on Windows
|
|
|
|
// UNSUPPORTED: OS=xros
|
|
|
|
// For LTO, the linker dlopen()'s the libLTO library, which is a scenario that
|
|
// ASan cannot work in ("Interceptors are not working, AddressSanitizer is
|
|
// loaded too late").
|
|
// REQUIRES: no_asan
|
|
|
|
// UNSUPPORTED: linker_overridden
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %use_just_built_liblto %target-swiftc_driver -emit-library -static -lto=llvm-full %lto_flags -emit-module %S/Inputs/lto/module1.swift -working-directory %t
|
|
// RUN: %use_just_built_liblto %target-swiftc_driver -lto=llvm-full %lto_flags %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
|