mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This adjusts the test diffing to ignore the whitespace changes across different platforms. `raw_fd_ostream` will write out `OF_Text` files with the platform's line endings, which may differ from the source file's.
15 lines
422 B
Swift
15 lines
422 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -typecheck -update-code -primary-file %s -F %S/mock-sdk -emit-migrated-file-path %t/result.swift -swift-version 4
|
|
// RUN: diff --strip-trailing-cr -u %s.expected %t/result.swift
|
|
|
|
import TestMyTime
|
|
|
|
let zero = kMyTimeZero
|
|
|
|
let _ = MyTimeAdd(kMyTimeZero, kMyTimeZero)
|
|
let _ = MyTimeAdd(
|
|
kMyTimeZero, kMyTimeZero)
|
|
let _ = MyTimeAdd(
|
|
kMyTimeZero,
|
|
kMyTimeZero)
|