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 foo -f foo %s -- 2>&1 | FileCheck --check-prefix=CHECK-BOTH %s
5
6// CHECK: unknown command: foo
7// CHECK-NOT: unknown command: bar
8
9// CHECK-NONEXISTENT: cannot open {{.*}}nonexistent.script
10// CHECK-BOTH: cannot specify both -c and -f
11

source code of clang-tools-extra/test/clang-query/errors.c