mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
372 B
Swift
11 lines
372 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 -o %t/static-stdlib %s
|
|
// RUN: %t/static-stdlib | %FileCheck %s
|
|
// RUN: ldd %t/static-stdlib | %FileCheck %s --check-prefix=LDD
|
|
// CHECK: hello world!
|
|
// LDD-NOT: libswiftCore.so
|