Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 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 |