diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 06:44:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 06:44:18 +0000 |
commit | 35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c (patch) | |
tree | f210da96169920d064871ae45d1fe98a52b33aa5 /clang/test/Preprocessor/macro_expand.c | |
parent | 5ca5d40cf4092bc55781e32b92525c6b4ce4c446 (diff) | |
download | bcm5719-llvm-35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c.tar.gz bcm5719-llvm-35dd5056fc8b729b6e7af69b7c7e1ee70a5cd85c.zip |
fix PR3927 by being more careful about the pp test for identifier.
llvm-svn: 69423
Diffstat (limited to 'clang/test/Preprocessor/macro_expand.c')
-rw-r--r-- | clang/test/Preprocessor/macro_expand.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/clang/test/Preprocessor/macro_expand.c b/clang/test/Preprocessor/macro_expand.c index a7a80aff427..c2c76bddbf0 100644 --- a/clang/test/Preprocessor/macro_expand.c +++ b/clang/test/Preprocessor/macro_expand.c @@ -1,7 +1,16 @@ -// RUN: clang-cc -E %s | grep '^Y$' +// RUN: clang-cc -E %s | grep '^A: Y$' && +// RUN: clang-cc -E %s | grep '^B: f()$' && +// RUN: clang-cc -E %s | grep '^C: for()$' #define X() Y #define Y() X -X()()() +A: X()()() + +// PR3927 +#define f(x) h(x +#define for(x) h(x +#define h(x) x() +B: f(f)) +C: for(for)) |