]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/ppcat.qc
tests: xor peephole optimization regression test
[xonotic/gmqcc.git] / tests / ppcat.qc
index 2056632054591fb7c86c781da3d38f07e3e04488..dc2826925701d5bdafb9cc4bf136a464239fa594 100644 (file)
@@ -1,2 +1,13 @@
 #define CAT(X, Y) X##Y
 CAT(hello, world)
+
+#define REDIR(X, Y) CAT(X, Y)
+REDIR(CAT(hello, world), CAT(world, hello))
+
+#define SCONS(X, ...) REDIR(X, __VA_ARGS__)
+SCONS(hello, world)
+
+#define FOO(X) X##X
+#define BAR(X) FOO(X)FOO(X)
+
+REDIR(BAR(hello),BAR(world))