File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 13
13
// RUN: %FileCheck -check-prefix CHECK-INDEX %s <%t/stderr_batch_index
14
14
// CHECK-INDEX: warning: ignoring '-enable-batch-mode' because '-index-file' was also specified
15
15
//
16
+ // The following test is verifying that -disable-batch-mode overrides an earlier
17
+ // -enable-batch-mode and silences the warning about mixing batch mode with
18
+ // -index-file. Tools that take an existing command line and add -index-file can
19
+ // thus add -disable-batch-mode without having to otherwise interpret the
20
+ // arguments.
21
+ //
16
22
// RUN: %swiftc_driver -disable-batch-mode -index-file %S/../Inputs/empty.swift -### 2>%t/stderr_nobatch_index | %FileCheck %s
17
23
// RUN: %swiftc_driver -enable-batch-mode -index-file %S/../Inputs/empty.swift -disable-batch-mode -### 2>%t/stderr_batch_nobatch_index | %FileCheck %s
18
24
// RUN: %FileCheck -allow-empty -check-prefix CHECK-INDEX-DISABLED %s <%t/stderr_nobatch_index
You can’t perform that action at this time.
0 commit comments