Files
swift-mirror/test/Index/Store/driver-multiple-inputs.swift
Argyrios Kyrtzidis 8207212f0b [driver/index] Fix an issue where the -index-file invocation was not working when there are 5 or more input files
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.
2018-04-12 19:37:44 -07:00

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