From ec2b103c267a06a66e926f62cd96767b280f5cf5 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/Preprocessor/macro_disable.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/Preprocessor/macro_disable.c (limited to 'test/Preprocessor/macro_disable.c') diff --git a/test/Preprocessor/macro_disable.c b/test/Preprocessor/macro_disable.c new file mode 100644 index 0000000000000..ff861d2621971 --- /dev/null +++ b/test/Preprocessor/macro_disable.c @@ -0,0 +1,13 @@ +// RUN: clang-cc -E %s | grep 'a: 2 + M_0(3)(4)(5);' && +// RUN: clang-cc -E %s | grep 'b: 4 + 4 + 3 + 2 + 1 + M_0(3)(2)(1);' + +#define M_0(x) M_ ## x +#define M_1(x) x + M_0(0) +#define M_2(x) x + M_1(1) +#define M_3(x) x + M_2(2) +#define M_4(x) x + M_3(3) +#define M_5(x) x + M_4(4) + +a: M_0(1)(2)(3)(4)(5); +b: M_0(5)(4)(3)(2)(1); + -- cgit v1.2.3