shithub: regress

Download patch

ref: 6ede4535f9d2dbfe4975d8768a26eca8d62967be
parent: bee2710c5c6c08c1921adec648a1ef628ad9268c
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jul 12 21:15:53 EDT 2020

Add tests of cyclic defines.

--- /dev/null	Mon Oct 18 12:05:45 2021
+++ b/cmd/cpp/cycle.test	Sun Jul 12 21:15:53 2020
@@ -0,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	Mon Oct 18 12:05:45 2021
+++ b/cmd/cpp/cycle.test.expected	Sun Jul 12 21:15:53 2020
@@ -0,0 +1,15 @@
+#line 1 "/usr/ori/src/regress/cmd/cpp/cycle.test"
+
+
+ A
+ B
+
+
+
+ X(1)
+ Y(1)
+
+
+
+ RS
+ R(x)