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 %s |
4 | // CHECK: preamble-reparse-warn-macro.c:[[@LINE+8]]:9: warning: 'MAC' macro redefined |
5 | // CHECK-NEXT: Number FIX-ITs = 0 |
6 | // CHECK-NEXT: preamble-reparse-warn-macro.c:[[@LINE+2]]:9: note: previous definition is here |
7 | |
8 | #define MAC 1 |
9 | #include "header.h" |
10 | |
11 | void test(); |
12 | #define MAC 2 |
13 |