summary refs log tree commit diff stats
path: root/tests/stdlib/tsqlparser.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tsqlparser.nim')
-rw-r--r--tests/stdlib/tsqlparser.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/stdlib/tsqlparser.nim b/tests/stdlib/tsqlparser.nim
new file mode 100644
index 000000000..6f123f21d
--- /dev/null
+++ b/tests/stdlib/tsqlparser.nim
@@ -0,0 +1,13 @@
+discard """
+  matrix: "--mm:refc; --mm:orc"
+  output: '''true'''
+"""
+
+# Just check that we can parse 'somesql' and render it without crashes.
+
+import parsesql, streams, os
+
+var tree = parseSql(newFileStream(parentDir(currentSourcePath) / "somesql.sql"), "somesql")
+discard renderSql(tree)
+
+echo "true"