mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
some test cleanups & category reorganization (#22010)
* clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
This commit is contained in:
6
tests/global/a_module.nim
Normal file
6
tests/global/a_module.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
# a.nim
|
||||
{.push stackTrace: off.}
|
||||
proc foo*(): int =
|
||||
var a {.global.} = 0
|
||||
result = a
|
||||
{.pop.}
|
||||
7
tests/global/tglobal2.nim
Normal file
7
tests/global/tglobal2.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
discard """
|
||||
output: "0"
|
||||
"""
|
||||
|
||||
# b.nim
|
||||
import a_module
|
||||
echo foo()
|
||||
Reference in New Issue
Block a user