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 | 2a9be3e5b0c390f9189bb3dec2b2b6ba884f60cc (patch) | |
tree | 12b67ec0f6bd38d43c61141c552e31d940d04b17 /test/Preprocessor/line-directive-output.c | |
parent | 8f50b24c8b17368f68c2e71240d487dde53f6da8 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/line-directive-output.c')
-rw-r--r-- | test/Preprocessor/line-directive-output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/line-directive-output.c b/test/Preprocessor/line-directive-output.c index 290703a50e..bd3ea949eb 100644 --- a/test/Preprocessor/line-directive-output.c +++ b/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" |