diff options
Diffstat (limited to 'test/Preprocessor/macro_fn_disable_expand.c')
-rw-r--r-- | test/Preprocessor/macro_fn_disable_expand.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Preprocessor/macro_fn_disable_expand.c b/test/Preprocessor/macro_fn_disable_expand.c new file mode 100644 index 0000000..d99c018 --- /dev/null +++ b/test/Preprocessor/macro_fn_disable_expand.c @@ -0,0 +1,11 @@ +// RUN: clang-cc %s -E | grep 'bar foo (2)' && +// RUN: clang-cc %s -E | grep 'm(ABCD)' + +#define foo(x) bar x +foo(foo) (2) + + +#define m(a) a(w) +#define w ABCD +m(m) // m(ABCD) + |