summary refs log tree commit diff stats
path: root/tests/pragmas/tpragmas_misc.nim
blob: 247fa471ed7c245343478bffef3324bb70597375 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
##[
tests for misc pragmas that don't need a separate file
]##

block:
  static: doAssert not defined(tpragmas_misc_def)
  {.undef(tpragmas_misc_def).} # works even if not set
  static: doAssert not defined(tpragmas_misc_def)
  {.define(tpragmas_misc_def).}
  static: doAssert defined(tpragmas_misc_def)
  {.undef(tpragmas_misc_def).}
  static: doAssert not defined(tpragmas_misc_def)