[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / test / clang-query / errors.c
blobbbb742125744f9bc96ad36b22302fa794a67332b
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
6 // CHECK: unknown command: foo
7 // CHECK-NOT: unknown command: bar
9 // CHECK-NONEXISTENT: cannot open {{.*}}nonexistent.script
10 // CHECK-BOTH: cannot specify both -c and -f