diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-07-19 05:48:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-07-19 05:48:15 +0000 |
| commit | ab30c0360d3cec05efca240dc7d87b56962df454 (patch) | |
| tree | 73a0e292903792ea54a82c218e56b56015995b87 | |
| parent | e8dcfef324eb7240381ba9116f21da22fa4fef73 (diff) | |
| download | bcm5719-llvm-ab30c0360d3cec05efca240dc7d87b56962df454.tar.gz bcm5719-llvm-ab30c0360d3cec05efca240dc7d87b56962df454.zip | |
Make this testcase more interesting, actually add run lines :)
llvm-svn: 38735
| -rw-r--r-- | clang/test/Preprocessor/macro_fn_preexpand.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/clang/test/Preprocessor/macro_fn_preexpand.c b/clang/test/Preprocessor/macro_fn_preexpand.c index 75bde69886c..81a7c417268 100644 --- a/clang/test/Preprocessor/macro_fn_preexpand.c +++ b/clang/test/Preprocessor/macro_fn_preexpand.c @@ -1,5 +1,12 @@ -// clang %s -E | grep '1 1 X' -/* Preexpansion of argument.*/ +// RUN: clang %s -E | grep 'pre: 1 1 X' && +// RUN: clang %s -E | grep 'nopre: 1A(X)' + +/* Preexpansion of argument. */ #define A(X) 1 X -A(A(X)) +pre: A(A(X)) + +/* The ## operator disables preexpansion. */ +#undef A +#define A(X) 1 ## X +nopre: A(A(X)) |

