annotate clang/test/Index/preamble-reparse-warn-macro.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: mkdir -p %t
anatofuz
parents:
diff changeset
2 // RUN: touch %t/header.h
anatofuz
parents:
diff changeset
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
anatofuz
parents:
diff changeset
4 // CHECK: preamble-reparse-warn-macro.c:[[@LINE+8]]:9: warning: 'MAC' macro redefined
anatofuz
parents:
diff changeset
5 // CHECK-NEXT: Number FIX-ITs = 0
anatofuz
parents:
diff changeset
6 // CHECK-NEXT: preamble-reparse-warn-macro.c:[[@LINE+2]]:9: note: previous definition is here
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 #define MAC 1
anatofuz
parents:
diff changeset
9 #include "header.h"
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 void test();
anatofuz
parents:
diff changeset
12 #define MAC 2