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