xref: /minix3/external/bsd/llvm/dist/clang/test/Index/preamble-reparse-warn-end-of-file.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: mkdir -p %t
2*0a6a1f1dSLionel Sambuc // RUN: touch %t/header.h
3*0a6a1f1dSLionel Sambuc // 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*0a6a1f1dSLionel Sambuc // RUN: FileCheck -input-file=%t.out.txt %s
5*0a6a1f1dSLionel Sambuc // CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+6]]:6: FunctionDecl=test:[[@LINE+6]]:6
6*0a6a1f1dSLionel Sambuc // STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+5]]:14: error: expected '}'
7*0a6a1f1dSLionel Sambuc // STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+4]]:14: error: expected '}'
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc #include "header.h"
10*0a6a1f1dSLionel Sambuc 
test()11*0a6a1f1dSLionel Sambuc void test() {
12