shithub: regress

Download patch

ref: 6ede4535f9d2dbfe4975d8768a26eca8d62967be
parent: bee2710c5c6c08c1921adec648a1ef628ad9268c
author: Ori Bernstein <[email protected]>
date: Sun Jul 12 21:15:53 EDT 2020

Add tests of cyclic defines.

--- /dev/null
+++ b/cmd/cpp/cycle.test
@@ -1,0 +1,14 @@
+#define A B
+#define B A
+A
+B
+
+#define X(x) Y(x)
+#define Y(x) X(x)
+X(1)
+Y(1)
+
+#define R(x) RS
+#define RS R(x)
+RS
+R(1)
--- /dev/null
+++ b/cmd/cpp/cycle.test.expected
@@ -1,0 +1,15 @@
+#line 1 "/usr/ori/src/regress/cmd/cpp/cycle.test"
+
+
+ A
+ B
+
+
+
+ X(1)
+ Y(1)
+
+
+
+ RS
+ R(x)