mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* swift-api-digester: ensure constructors are detected as removed if not moved. rdar://31694119 * swift-api-digester: types with the same printed name are considered behavior-preserving. rdar://31694085 * [test] Using tmp directory from build.
8 lines
713 B
Swift
8 lines
713 B
Swift
// REQUIRES: OS=macosx
|
|
// RUN: rm -rf %t.tmp && mkdir %t.tmp && mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk
|
|
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -swift-version 3
|
|
// RUN: %api-digester -diagnose-sdk -input-paths %S/stdlib-stable.json -input-paths %t.tmp/current-stdlib.json >> %t.tmp/changes.txt
|
|
// RUN: %clang -E -P -x c %S/source-stability.swift.expected -o - | sed '/^\s*$/d' > %t.tmp/source-stability.swift.expected
|
|
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' > %t.tmp/changes.txt.tmp
|
|
// RUN: diff -u %t.tmp/source-stability.swift.expected %t.tmp/changes.txt.tmp ; rm -rf %S/tmp
|