xref: /llvm-project/clang-tools-extra/clangd/test/check-lines.test (revision 1feb7af046889728233e67e3163ab30020207bb2)
1// RUN: cp %s %t.cpp
2// RUN: not clangd -enable-config=0 -check=%t.cpp -check-lines=6-14 2>&1 | FileCheck -strict-whitespace %s
3// RUN: not clangd -enable-config=0 -check=%t.cpp -check-lines=14 2>&1 | FileCheck -strict-whitespace %s
4
5// CHECK: Testing on source file {{.*}}check-lines.test
6// CHECK: internal (cc1) args are: -cc1
7// CHECK: Building preamble...
8// CHECK: Building AST...
9// CHECK: Testing features at each token
10// CHECK: tweak: ExpandDeducedType ==> FAIL
11// CHECK: All checks completed, 1 errors
12
13void fun();
14auto x = fun; // This line is tested
15auto y = fun; // This line is not tested
16