Skip to content

Commit 3c1e4ce

Browse files
committed
add a test case for an invalid optimization
A recent optimization was overly aggressive and resulted in a miscompile in FoundationNetworking. Add a test case.
1 parent 11f0f6e commit 3c1e4ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
REQUIRES: platform=Linux
2+
23
RUN: rm -rf %t
34
RUN: mkdir -p %t
5+
46
RUN: %{swiftc} -o %t/test-foundation-networking %S/test-foundation-networking.swift
57
RUN: %t/test-foundation-networking | %{FileCheck} %s
8+
9+
RUN: %{swiftc} -O -o %t/test-foundation-networking %S/test-foundation-networking.swift
10+
RUN: %t/test-foundation-networking | %{FileCheck} %s
11+
612
CHECK: http://example.com

0 commit comments

Comments
 (0)