[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / preamble-reparse-warn-end-of-file.c
blobc2ae892fbc625aef8c748a04e1cf83af9fac622b
1 // RUN: mkdir -p %t
2 // RUN: touch %t/header.h
3 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2>&1 > %t.out.txt | FileCheck -check-prefix=STDERR %s
4 // RUN: FileCheck -input-file=%t.out.txt %s
5 // CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+6]]:6: FunctionDecl=test:[[@LINE+6]]:6
6 // STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+5]]:14: error: expected '}'
7 // STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+4]]:14: error: expected '}'
9 #include "header.h"
11 void test() {