2014-03-09 12:24:57 +08:00
|
|
|
// RUN: mkdir -p %t
|
|
|
|
// RUN: touch %t/header.h
|
2014-03-10 14:02:13 +08:00
|
|
|
// 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
|
2014-03-09 12:24:57 +08:00
|
|
|
// RUN: FileCheck -input-file=%t.out.txt %s
|
2014-03-10 14:02:03 +08:00
|
|
|
// CHECK: preamble-reparse-warn-end-of-file.c:[[@LINE+6]]:6: FunctionDecl=test:[[@LINE+6]]:6
|
2014-03-10 14:02:13 +08:00
|
|
|
// STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+5]]:14: error: expected '}'
|
|
|
|
// STDERR: preamble-reparse-warn-end-of-file.c:[[@LINE+4]]:14: error: expected '}'
|
2014-03-09 12:24:57 +08:00
|
|
|
|
|
|
|
#include "header.h"
|
|
|
|
|
|
|
|
void test() {
|