Skip to content

Commit 3ceb61d

Browse files
authored
Merge pull request #71 from compnerd/hang
add a test case for an invalid optimization
2 parents 11f0f6e + cf8e32d commit 3ceb61d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Foundation
2+
import FoundationNetworking
3+
4+
let url = URL(string: "http://swift.org")!
5+
let data = try! Data(contentsOf: url)
6+
print(data.underestimatedCount)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
REQUIRES: platform=Linux
2+
3+
RUN: rm -rf %t
4+
RUN: mkdir -p %t
5+
RUN: %{swiftc} -o %t/test-foundation-networking-fetch %S/test-foundation-networking-fetch.swift
6+
RUN: %t/test-foundation-networking-fetch | %{FileCheck} %s
7+
8+
CHECK: {{[0-9]+}}

0 commit comments

Comments
 (0)