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