Skip to content

Commit e1bbc3e

Browse files
committed
SR-7039: Add test for -static-stdlib when using Dispatch
1 parent 4907ae1 commit e1bbc3e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Dispatch
2+
3+
let queue = DispatchQueue(label: "queuename", attributes: .concurrent)
4+
queue.sync {
5+
print("OK")
6+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
REQUIRES: platform=Linux
2+
RUN: rm -rf %t
3+
RUN: mkdir -p %t
4+
RUN: %{swiftc} -static-stdlib %S/dispatch_test.swift -lDispatchStubs -lbsd -o %t/dispatch_test
5+
RUN: %t/dispatch_test | %{FileCheck} %s
6+
7+
CHECK: OK

0 commit comments

Comments
 (0)