summaryrefslogtreecommitdiff
path: root/test/Preprocessor/macro_expand_empty.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-02-24 20:50:36 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-02-24 20:50:36 +0000
commitd55429f14a23e27dda52d2688e8432ae0525bc21 (patch)
tree9d52ff31c2680c3de02e35d26736975dc64d8b7a /test/Preprocessor/macro_expand_empty.c
parent413d8a21001c5f37bcf82f91e405a3513796ad7e (diff)
downloadclang-d55429f14a23e27dda52d2688e8432ae0525bc21.tar.gz
If preprocessing results in a token with leading whitespace that was expanded
from a macro in column 0, ensure that we print whitespace before it in the -E output. Patch by Harald van Dijk! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/macro_expand_empty.c')
-rw-r--r--test/Preprocessor/macro_expand_empty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Preprocessor/macro_expand_empty.c b/test/Preprocessor/macro_expand_empty.c
index c3fc4f2964..5507728881 100644
--- a/test/Preprocessor/macro_expand_empty.c
+++ b/test/Preprocessor/macro_expand_empty.c
@@ -17,5 +17,5 @@ IDENTITY0()
#define FOO() BAR() second
#define BAR()
first // CHECK: {{^}}first{{$}}
-FOO() // CHECK: second
+FOO() // CHECK: {{^}} second{{$}}
third // CHECK: {{^}}third{{$}}