Skip to content

Commit 38379e5

Browse files
authored
Merge pull request #44 from gottesmm/pr-0e8dd26942103679ddd86142f411f6831e9e0932
Add a test that makes sure a static Foundation is included in toolcha…
2 parents b5f9eec + 027837d commit 38379e5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ config.test_format = lit.formats.ShTest(execute_external = False)
5353
# suffixes: A list of file extensions to treat as test files.
5454
#
5555
# We override this in specific subdirectories to change what we test.
56-
config.suffixes = [".txt", ".py", ".md"]
56+
config.suffixes = [".txt", ".py", ".md", ".test"]
5757

5858
# excludes: A list of directories to exclude from the testsuite. The 'Inputs'
5959
# subdirectories contain auxiliary inputs for various tests in their parent

test-static-stdlib/main.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
import Foundation
3+
4+
let u = URL(fileURLWithPath: "file:///foo")
5+
6+
print("foo bar baz: \(u)")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
RUN: rm -rf %t
3+
RUN: mkdir -p %t
4+
RUN: %{swiftc} -static-stdlib %S/main.swift -o %t/main
5+
RUN: %t/main | %{FileCheck} %s
6+
7+
CHECK: foo bar baz: file:/foo

0 commit comments

Comments
 (0)