summary refs log tree commit diff stats
path: root/tests/cpp/t6986.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/t6986.nim')
-rw-r--r--tests/cpp/t6986.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cpp/t6986.nim b/tests/cpp/t6986.nim
new file mode 100644
index 000000000..ffd277adb
--- /dev/null
+++ b/tests/cpp/t6986.nim
@@ -0,0 +1,16 @@
+discard """
+  targets: "cpp"
+  action: "compile"
+"""
+
+import sequtils, strutils
+
+
+let rules = toSeq(lines("input"))
+  .mapIt(it.split(" => ").mapIt(it.replace("/", "")))
+  .mapIt((it[0], it[1]))
+
+
+proc pp(s: string): auto =
+  toSeq(lines(s)).mapIt(it.split(" => ").mapIt(it.replace("/", ""))).mapIt((it[0], it[1]))
+echo pp("input")