ref: 56f48a1788a3d7e1e6ee53d58f4849c6b9b3a01c
parent: fe91c529db26c3a363c37b6447542dbb4b1f9358
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Nov 13 10:01:32 EST 2021
tests/cc: Fix 0153-cpp-string.c Stringfier operator can be apply only to a token, not to a set of tokens. In the same way concatenation operator can be applied only between tokens that generate a valid token.
--- a/tests/cc/execute/0153-cpp-string.c
+++ b/tests/cc/execute/0153-cpp-string.c
@@ -1,10 +1,10 @@
-#define M1(x) "This is a string $ or # or ## " ## #x
+#define M1(x,y) "This is a string $ or # or ## " #x y
#define STR "This is a string $ or # or ## and it is ok!"
int
main(void)
{
- char *s, *t = M1(and it is ok!);
+ char *s, *t = M1(and, " it is ok!");
for (s = STR; *s && *s == *t; ++s)
++t;