summary refs log tree commit diff stats
path: root/tinyc/tests/pp/01.c
diff options
context:
space:
mode:
Diffstat (limited to 'tinyc/tests/pp/01.c')
-rw-r--r--tinyc/tests/pp/01.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tinyc/tests/pp/01.c b/tinyc/tests/pp/01.c
new file mode 100644
index 000000000..2fc3d7960
--- /dev/null
+++ b/tinyc/tests/pp/01.c
@@ -0,0 +1,6 @@
+#define hash_hash # ## #
+#define mkstr(a) # a
+#define in_between(a) mkstr(a)
+#define join(c, d) in_between(c hash_hash d)
+char p[] = join(x, y);
+// char p[] = "x ## y";