1// RUN: %clangxx -O0 %s -o %t
2// RUN: echo -e "symbolize=1\ninclude='%t.options2.txt'" >%t.options1.txt
3// RUN: echo -e "help=1\n" >%t.options2.txt
4// RUN: cat %t.options1.txt
5// RUN: cat %t.options2.txt
6// RUN: %tool_options="help=0:include='%t.options1.txt'" %run %t 2>&1 | tee %t.out
7// RUN: FileCheck %s --check-prefix=CHECK-VERBOSITY1 <%t.out
8// RUN: %tool_options="include='%t.options1.txt',help=0" %run %t 2>&1 | tee %t.out
9// RUN: FileCheck %s --check-prefix=CHECK-VERBOSITY0 <%t.out
10// RUN: %tool_options="include='%t.options-not-found.txt',help=1" not %run %t 2>&1 | tee %t.out
11// RUN: FileCheck %s --check-prefix=CHECK-NOT-FOUND < %t.out
12
13#include <stdio.h>
14
15int main() {
16  fprintf(stderr, "done\n");
17}
18
19// CHECK-VERBOSITY1: Available flags for
20// CHECK-VERBOSITY0-NOT: Available flags for
21// CHECK-NOT-FOUND: Failed to read options from
22