mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also, make the analogous change to apple/swift-driver#1372, which gets the sanitizer tests working on Android again, and remove the lld_lto feature in the tests, which is now unused.
11 lines
422 B
Swift
11 lines
422 B
Swift
// Statically link a "hello world" program
|
|
// REQUIRES: OS=linux-gnu
|
|
// REQUIRES: static_stdlib
|
|
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
|