Files
swift-mirror/test/Migrator/null_migration.swift
Saleem Abdulrasool f12f0ccd01 test: adjust Migrator tests (NFCI)
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.
2020-01-13 18:45:45 -08:00

23 lines
504 B
Swift

// RUN: %empty-directory(%t) && %target-swift-frontend -c -update-code -primary-file %s -emit-migrated-file-path %t/migrated_null_migration.swift -emit-remap-file-path %t/null_migration.remap -o /dev/null
// RUN: diff --strip-trailing-cr -u %s %t/migrated_null_migration.swift
// This file tests that, if all migration passes are no-op,
// there are no changes to the file.
protocol P {
func foo()
}
class C : P {
func foo() {}
}
struct S : P {
func foo() {}
}
enum E : P {
func foo() {}
}