summary refs log tree commit diff stats
path: root/nimpretty/tests/expected/simple.nim
diff options
context:
space:
mode:
Diffstat (limited to 'nimpretty/tests/expected/simple.nim')
-rw-r--r--nimpretty/tests/expected/simple.nim29
1 files changed, 29 insertions, 0 deletions
diff --git a/nimpretty/tests/expected/simple.nim b/nimpretty/tests/expected/simple.nim
new file mode 100644
index 000000000..e711eb3b6
--- /dev/null
+++ b/nimpretty/tests/expected/simple.nim
@@ -0,0 +1,29 @@
+
+var x: int = 2
+
+echo x
+# bug #9144
+
+proc a() =
+  while true:
+    discard
+    # comment 1
+
+  # comment 2
+  discard
+
+# bug #15596
+discard ## comment 3
+
+discard # comment 4
+
+
+# bug #20553
+
+let `'hello` = 12
+echo `'hello`
+
+
+proc `'u4`(n: string) =
+  # The leading ' is required.
+  discard