summary refs log tree commit diff stats
path: root/tests/misc/t17286.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/t17286.nim')
-rw-r--r--tests/misc/t17286.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/misc/t17286.nim b/tests/misc/t17286.nim
new file mode 100644
index 000000000..3a54e624e
--- /dev/null
+++ b/tests/misc/t17286.nim
@@ -0,0 +1,16 @@
+discard """
+  cmd: "nim check -b:js $file"
+  action: "compile"
+"""
+
+# bug #17286
+
+import std/compilesettings
+
+static:
+  doAssert querySetting(backend) == "js"
+  doAssert defined(js)
+  doAssert not defined(c)
+
+import random
+randomize()
\ No newline at end of file