1 | // RUN: not clang-query -c foo -c bar %s -- | FileCheck %s |
---|---|
2 | // RUN: not clang-query -f %S/Inputs/foo.script %s -- | FileCheck %s |
3 | // RUN: not clang-query -f %S/Inputs/nonexistent.script %s -- 2>&1 | FileCheck --check-prefix=CHECK-NONEXISTENT %s |
4 | // RUN: not clang-query -c 'file %S/Inputs/nonexistent.script' %s -- 2>&1 | FileCheck --check-prefix=CHECK-NONEXISTENT-FILEQUERY %s |
5 | // RUN: not clang-query -c foo -f foo %s -- 2>&1 | FileCheck --check-prefix=CHECK-BOTH %s |
6 | |
7 | // CHECK: unknown command: foo |
8 | // CHECK-NOT: unknown command: bar |
9 | |
10 | // CHECK-NONEXISTENT: cannot open {{.*}}nonexistent.script |
11 | // CHECK-NONEXISTENT-FILEQUERY: cannot open {{.*}}nonexistent.script |
12 | // CHECK-BOTH: cannot specify both -c and -f |
13 |