scc

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

commit 2559f309a589a44f99099038a6253e0e1beb66dc
parent 7a10ad2b7f2b6345a42d0777be81c96ed60875c3
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 17 Nov 2021 22:12:20 +0100

tests/cc: Add 0197-cppcomment.c

Diffstat:
Atests/cc/execute/0197-cppcomment.c | 12++++++++++++
Mtests/cc/execute/scc-tests.lst | 1+
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0197-cppcomment.c b/tests/cc/execute/0197-cppcomment.c @@ -0,0 +1,12 @@ +#define TEST1 1 // comment +#define TEST2 2 + +int +main(void) +{ + if (TEST1 != 1) + return 1; + if (TEST2 != 2) + return 2; + return 0; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -187,3 +187,4 @@ 0194-vararg.c 0195-unexpected.c 0196-invalidchar.c +0197-cppcomment.c