scc

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

commit dfda6fe8550bbdbf1176c76cdbc943cc5a6dec86
parent 20cea36cf1e5f8278cd79cd3e9b7905bfbac483e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 26 Sep 2015 19:51:55 +0200

Add basic test for macro argument stringizer

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

diff --git a/cc1/tests/test027.c b/cc1/tests/test027.c @@ -0,0 +1,26 @@ + +/* +name: TEST027 +description: Test of cpp stringizer +output: +F2 +G3 F2 main +{ +\ +A5 P p + A5 "68656C6C6F20697320626574746572207468616E20627965 'P :P + r A5 @K gK +} +*/ + +#define x(y) #y + +int +main(void) +{ + char *p; + p = x(hello) " is better than bye"; + + return *p; +} +