scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 720ba6c5d7b45ac586a558f712a0c0bef6b3bbbd
parent 87bc23e5e8e976b140307a4973fb36a585253734
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  1 Mar 2023 16:22:44 +0100

test/cc: Add execute/0223-macro.c

Diffstat:
Atests/cc/execute/0223-macro.c | 9+++++++++
Mtests/cc/execute/scc-tests.lst | 1+
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0223-macro.c b/tests/cc/execute/0223-macro.c @@ -0,0 +1,9 @@ +#define foo [] +#define cat(x, y) x##y +int cat(foo,_); + +int +main() +{ + return foo_; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -213,3 +213,4 @@ 0220-comma.c 0221-ifdef.c 0222-ifdef.c +0223-macro.c