Files
swift-mirror/validation-test/Serialization/Foundation-determinism.swift
Saleem Abdulrasool 41d9c2cc59 stdlib: restructure for OS family layout of SDK overlay
The SDK directory is now confusing as the Windows target also has a SDK
overlay.  In order to make this more uniform, move the SDK directory to
Darwin which covers the fact that this covers the XNU family of OSes.
The Windows directory contains the SDK overlay for the Windows target.
2018-12-06 11:32:05 -08:00

18 lines
1.2 KiB
Swift

// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.1.swiftmodule
// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.2.swiftmodule
// RUN: diff <(llvm-bcanalyzer -dump %t.1.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g') <(llvm-bcanalyzer -dump %t.2.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g')
// REQUIRES: sr4342
// REQUIRES: objc_interop
// REQUIRES: PTRSIZE=64
// Compiling the same set of files twice, without modifying them (and without
// generating inlineable SIL) should produce the same swiftmodule. We don't
// promise more than that at this time...
// This test (and Foundation-determinism-wmo.swift) are known to be rather
// brittle, since they refer directly to sources in stdlib/public/ as well as
// gyb outputs in the build folder, and assume the Apple Foundation overlay can
// be built with a relatively simple command line. If it ever breaks, feel free
// to just disable it and file an SR.