Files
swift-mirror/test/Driver/static-stdlib-linux-lld.swift
Yuta Saito a85fa56291 Tests: Add XFAIL-ing test/Driver/static-stdlib-linux-lld.swift
`-use-ld=lld` and `-static-stdlib` combination is now brokwn due to
duplicate symbous for unicode properties impls between stdlib and
StringProcessing library, which is recently defaulted.
2022-06-18 02:57:08 +00:00

13 lines
455 B
Swift

// Statically link a "hello world" program
// REQUIRES: OS=linux-gnu
// REQUIRES: static_stdlib
// REQUIRES: lld_lto
// XFAIL: *
print("hello world!")
// RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -static-stdlib -use-ld=lld %import-static-libdispatch -o %t/static-stdlib-lld %s
// RUN: %t/static-stdlib-lld | %FileCheck %s
// RUN: ldd %t/static-stdlib-lld | %FileCheck %s --check-prefix=LDD
// CHECK: hello world!
// LDD-NOT: libswiftCore.so