summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorLubos Lunak <l.lunak@centrum.cz>2014-05-01 13:50:44 +0000
committerLubos Lunak <l.lunak@centrum.cz>2014-05-01 13:50:44 +0000
commit10961c0eab6bf294818470708625a5d4e786a015 (patch)
tree472c8b99af37cad2831c4496eb4c29cc296c1958 /clang/test/Frontend
parent575f79a409ee3849def691fbffb693f0afec6b4d (diff)
downloadbcm5719-llvm-10961c0eab6bf294818470708625a5d4e786a015.tar.gz
bcm5719-llvm-10961c0eab6bf294818470708625a5d4e786a015.zip
do not use "1" for line marker for the main file
"1" means entering a new file (from a different one), but the main file is not included from anything (and this would e.g. confuse -Wunused-macros to not report unused macros in the main file, see pr15610, or also see pr18948). The line marker is still useful e.g. if the resulting file is renamed or used via a pipe. llvm-svn: 207764
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/rewrite-includes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Frontend/rewrite-includes.c b/clang/test/Frontend/rewrite-includes.c
index 2158dd0e8ea..619d34a22d2 100644
--- a/clang/test/Frontend/rewrite-includes.c
+++ b/clang/test/Frontend/rewrite-includes.c
@@ -21,6 +21,7 @@ A(1,2)
#include "rewrite-includes7.h"
#include "rewrite-includes8.h"
// ENDCOMPARE
+// CHECK: {{^}}# 1 "{{.*}}rewrite-includes.c"{{$}}
// CHECK: {{^}}// STARTCOMPARE{{$}}
// CHECK-NEXT: {{^}}#define A(a,b) a ## b{{$}}
// CHECK-NEXT: {{^}}A(1,2){{$}}
OpenPOWER on IntegriCloud