diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-11-16 01:51:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-11-16 01:51:11 +0000 |
commit | 5d38875d8173367f224570ec2b03a30e656ed60b (patch) | |
tree | 34ae155be32832d1f8a940883a9ea372b1370002 /clang/test/Preprocessor/line-directive-output.c | |
parent | 08b5fef122e899179c12c05792cd48dc36e2d319 (diff) | |
download | bcm5719-llvm-5d38875d8173367f224570ec2b03a30e656ed60b.tar.gz bcm5719-llvm-5d38875d8173367f224570ec2b03a30e656ed60b.zip |
CPP Output: Do not emit an enter file marker for the main file.
- This diverges from gcc, and confuses tools (like dtrace) which track # line
markers as a way to determine which content is in the context of the main
file.
llvm-svn: 168128
Diffstat (limited to 'clang/test/Preprocessor/line-directive-output.c')
-rw-r--r-- | clang/test/Preprocessor/line-directive-output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/line-directive-output.c b/clang/test/Preprocessor/line-directive-output.c index 290703a50e3..bd3ea949ebd 100644 --- a/clang/test/Preprocessor/line-directive-output.c +++ b/clang/test/Preprocessor/line-directive-output.c @@ -2,6 +2,10 @@ // PR6101 int a; // CHECK: # 1 "{{.*}}line-directive-output.c" + +// Check that we do not emit an enter marker for the main file. +// CHECK-NOT: # 1 "{{.*}}line-directive-output.c" 1 + // CHECK: int a; // CHECK-NEXT: # 50 "{{.*}}line-directive-output.c" |