summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Kifremoval99
1 files changed, 99 insertions, 0 deletions
diff --git a/tests/Kifremoval b/tests/Kifremoval
new file mode 100644
index 0000000..f94472c
--- /dev/null
+++ b/tests/Kifremoval
@@ -0,0 +1,99 @@
+# Test some tricky cases that give consecutive 'if' nodes even after
+# flattening. Simple cases are exercised a ton elsewhere.
+
+if X
+endif
+if X
+endif
+
+config A
+
+if X
+endif
+if X
+endif
+
+config B
+
+if X
+endif
+if X
+endif
+if X
+endif
+
+config C
+
+if X
+ if X
+ if X
+ endif
+ if X
+ endif
+ endif
+ if X
+ if X
+ endif
+ if X
+ endif
+ endif
+ config D
+endif
+if X
+endif
+
+menu "E"
+ if X
+ if X
+ endif
+ endif
+ if X
+ if X
+ endif
+ endif
+endmenu
+
+menu "F"
+ if X
+ endif
+ if X
+ endif
+ if X
+ if X
+ endif
+ if X
+ endif
+ menu "G"
+ endmenu
+ endif
+endmenu
+
+choice H
+ if X
+ if X
+ endif
+ endif
+ if X
+ if X
+ endif
+ endif
+endchoice
+
+choice I
+ if X
+ endif
+ if X
+ endif
+ if X
+ if X
+ endif
+ if X
+ endif
+ config J
+ endif
+endchoice
+
+if X
+endif
+if X
+endif