We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 156f081 + 54f1225 commit 8b20c88Copy full SHA for 8b20c88
test/Driver/static-stdlib-linux-lld.swift
@@ -0,0 +1,11 @@
1
+// Statically link a "hello world" program
2
+// REQUIRES: OS=linux-gnu
3
+// REQUIRES: static_stdlib
4
+// REQUIRES: lld_lto
5
+print("hello world!")
6
+// RUN: %empty-directory(%t)
7
+// RUN: %target-swiftc_driver -static-stdlib -use-ld=lld %import-static-libdispatch -o %t/static-stdlib-lld %s
8
+// RUN: %t/static-stdlib-lld | %FileCheck %s
9
+// RUN: ldd %t/static-stdlib-lld | %FileCheck %s --check-prefix=LDD
10
+// CHECK: hello world!
11
+// LDD-NOT: libswiftCore.so
0 commit comments