diff --git a/test/Misc/foundation_static_linking.swift b/test/Misc/foundation_static_linking.swift new file mode 100644 index 0000000000000..7cd6bfe1cb91e --- /dev/null +++ b/test/Misc/foundation_static_linking.swift @@ -0,0 +1,7 @@ +// REQUIRES: OS=linux-gnu +// RUN: %target-swiftc_driver -static-stdlib -o %t/foundation_static_linking %s +// RUN: not --crash %t/foundation_static_linking + +import Foundation + +_ = try! Data(contentsOf: URL(string: "http://httpbin.org/get")!)