From a85fa562914d59ffce02fc3b194dfdaaa380add5 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Sat, 18 Jun 2022 01:48:52 +0000 Subject: [PATCH] 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. --- test/Driver/static-stdlib-linux-lld.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Driver/static-stdlib-linux-lld.swift diff --git a/test/Driver/static-stdlib-linux-lld.swift b/test/Driver/static-stdlib-linux-lld.swift new file mode 100644 index 0000000000000..ad23b9e7ff188 --- /dev/null +++ b/test/Driver/static-stdlib-linux-lld.swift @@ -0,0 +1,12 @@ +// 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