scc

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

commit e22d82e7c5eff9eb5b0390e06b7df8e11c7e4599
parent ef83e049a0f548e2ca4c1bb7f8d4fae71a2c8678
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Mon, 25 May 2026 10:54:03 +0200

test/cc: Add more cases to 0273-cpp

Diffstat:
Mtests/cc/execute/0273-cpp.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/cc/execute/0273-cpp.c b/tests/cc/execute/0273-cpp.c @@ -5,7 +5,7 @@ static char *s2 = a( 3 ); static char *s3 = a( 3 2 ); static char *s4 = a ( 3 2); -static char *s5 = a("3 2 1"); +static char *s5 = a("3 2 1\n"); static int cmp(char *s1, char *s2) @@ -26,8 +26,12 @@ main(void) return 3; if (!cmp(s4, "3 2")) return 4; - if (!cmp(s5, "\"3 2 1\"")) + if (!cmp(s5, "\"3 2 1\\n\"")) return 5; + if (!cmp(a('\n'), "'\\n'")) + return 6; + if (!cmp(a('"'), "'\"'")) + return 6; return 0; }