blob: e02fbde78403683789c0c922c24c8fcebaaaa02e [file] [log] [blame]
Argyrios Kyrtzidisb255ee92014-03-09 04:24:57 +00001// RUN: mkdir -p %t
2// RUN: touch %t/header.h
NAKAMURA Takumi2b85e542014-03-10 06:02:13 +00003// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 2 local %s -I %t 2>&1 > %t.out.txt | FileCheck %s
NAKAMURA Takumi5e9c8212014-03-10 06:02:03 +00004// CHECK: preamble-reparse-warn-macro.c:[[@LINE+8]]:9: warning: 'MAC' macro redefined
Argyrios Kyrtzidisb255ee92014-03-09 04:24:57 +00005// CHECK-NEXT: Number FIX-ITs = 0
NAKAMURA Takumi5e9c8212014-03-10 06:02:03 +00006// CHECK-NEXT: preamble-reparse-warn-macro.c:[[@LINE+2]]:9: note: previous definition is here
Argyrios Kyrtzidisb255ee92014-03-09 04:24:57 +00007
8#define MAC 1
9#include "header.h"
10
11void test();
12#define MAC 2