mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* swift-api-digester: Add a test for generating migrator script. * swift-api-digester: Add #ifndef guard before each macro category. * swift-api-digester: Avoid printing macro categories with empty content. * swift-api-digester: Add test for multiple type changes in a single decl. * swift-api-digester: simplify some code. NFC
10 lines
810 B
Swift
10 lines
810 B
Swift
// RUN: rm -rf %t.mod && mkdir -p %t.mod
|
|
// RUN: rm -rf %t.sdk && mkdir -p %t.sdk
|
|
// RUN: rm -rf %t.module-cache && mkdir -p %t.module-cache
|
|
// RUN: %swift -emit-module -o %t.mod/macrogenleft.swiftmodule %S/Inputs/macro-gen-left.swift -parse-as-library
|
|
// RUN: %swift -emit-module -o %t.mod/macrogenright.swiftmodule %S/Inputs/macro-gen-right.swift -parse-as-library
|
|
// RUN: %api-digester -dump-sdk -module macrogenleft -o %t.dump1.json -module-cache-path %t.module-cache -sdk %t.sdk -swift-version 3 -I %t.mod
|
|
// RUN: %api-digester -dump-sdk -module macrogenright -o %t.dump2.json -module-cache-path %t.module-cache -sdk %t.sdk -swift-version 4 -I %t.mod
|
|
// RUN: %api-digester -compare-sdk --input-paths %t.dump1.json -input-paths %t.dump2.json -o %t.result
|
|
// RUN: diff -u %S/Outputs/macro-gen.def %t.result
|