forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f28b0e7
commit 55c5b32
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) |