mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the supplementary-outputs file is written for an -index-file invocation it writes out the first input file given in arguments instead of the input file that is provided by -index-file-path option. This then causes the frontend index invocation to fail with an error because there is a mismatch in the primary input file and the input file that is written in the supplementary-outputs file.
13 lines
478 B
Swift
13 lines
478 B
Swift
// XFAIL: linux
|
|
|
|
// Make sure the indexing invocation through the driver works.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: touch %t/s1.swift %t/s2.swift
|
|
// RUN: %target-swiftc_driver -index-store-path %t/idx %t/s1.swift %t/s2.swift -o %t/s1.o -index-file -index-file-path %t/s2.swift -index-ignore-system-modules -driver-filelist-threshold=0
|
|
// RUN: c-index-test core -print-unit %t/idx | %FileCheck %s
|
|
|
|
// CHECK: s1.o-{{[A-Z0-9]*}}
|
|
// CHECK: --------
|
|
// CHECK: out-file: {{.*}}s1.o
|