diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-19 16:11:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-19 16:11:58 +0000 |
commit | 2b64fdc4993795af86fd79f02085268e7be0dc4d (patch) | |
tree | cb27e8d98e16ebfc7760f5a811185fd0f2e055a8 /test/Preprocessor/stringize_space2.c | |
parent | a87b63b492553f1d47c418ad8849383aa3fd1ed1 (diff) |
Fix a stringizing bug that Neil noticed. We should preprocess this:
#define t(x) #x
t(a
c)
to "a c", not "ac".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/stringize_space2.c')
-rw-r--r-- | test/Preprocessor/stringize_space2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/stringize_space2.c b/test/Preprocessor/stringize_space2.c new file mode 100644 index 0000000000..cf81674065 --- /dev/null +++ b/test/Preprocessor/stringize_space2.c @@ -0,0 +1,6 @@ +/* RUN: clang -E %s | grep 'a c' + */ +#define t(x) #x +t(a +c) + |