summary refs log tree commit diff stats
path: root/tests/misc/t17286.nim
blob: 3a54e624eb1658c91ba1d83cc8057b75b08e5d73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()