scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 2181f5b6f64769cc57b8a9872d5f89f0493eb5d0
parent f40eebe22cd78f1256af2ea86fe9f64a4d74f00e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 26 Sep 2015 22:09:05 +0200

Add test for nested expansion in macros

Diffstat:
Acc1/tests/test028.c | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/cc1/tests/test028.c b/cc1/tests/test028.c @@ -0,0 +1,22 @@ + +/* +name: TEST028 +description: Test of reinterpretation in define +output: +F5 +G6 F5 foo +{ +\ + r "6869 'P +} +*/ + + +#define M(x) x +#define A(a,b) a(b) + +char * +foo(void) +{ + return A(M,"hi"); +}