scc

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

commit 503d25805f0acbcb9bcef3641ddcc1f63d143788
parent ce90dd2cd0d4da45351edbe54a3b9674545ffbd9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  1 Mar 2023 18:20:31 +0100

test/cc: Add error/0035-cpp.c

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

diff --git a/tests/cc/error/0035-cpp.c b/tests/cc/error/0035-cpp.c @@ -0,0 +1,9 @@ +/* +PATTERN: +0035-cpp.c:8: error: '##' cannot appear at either ends of a macro expansion +0035-cpp.c:9: error: '##' cannot appear at either ends of a macro expansion +. +*/ + +#define M(x) x## +#define N(x) ##x diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst @@ -32,3 +32,4 @@ 0032-krtypes.c 0033-character.c 0034-eof.c +0035-cpp.c