mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
writes compiler fixits as source edits. Driver option '-fixit-code' adds '-emit-fixits-path' for all the frontend invocations. Swift SVN r27208
9 lines
730 B
Swift
9 lines
730 B
Swift
// RUN: mkdir -p %t.out
|
|
// RUN: echo "{\"%S/Inputs/t1.swift\": {\"remap\": \"%t.out/t1.remap\"}, \"%S/Inputs/t2.swift\": {\"remap\": \"%t.out/t2.remap\"}}" > %t.json
|
|
// RUN: not %swiftc_driver -target %target-triple -module-name Blah -fixit-code %S/Inputs/t1.swift %S/Inputs/t2.swift -emit-module -emit-module-path %t.mod -emit-objc-header -emit-objc-header-path %t.h -j 1 -output-file-map %t.json 2> %t.err.txt
|
|
// RUN: c-arcmt-test %t.out/t1.remap %t.out/t2.remap | arcmt-test -verify-transformed-files %S/Inputs/t1.swift.result %S/Inputs/t2.swift.result
|
|
// RUN: FileCheck --input-file=%t.err.txt %s
|
|
|
|
// CHECK: error: use of unresolved identifier 'undeclared_foo1'
|
|
// CHECK: error: use of unresolved identifier 'undeclared_foo2'
|