mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 23:35:22 +00:00
deprecate newruntime (#17245)
* deprecate newruntime * tests * Update compiler/commands.nim
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
matrix: "--gc:refc; --gc:arc; --newruntime"
|
||||
matrix: "--gc:refc; --gc:arc"
|
||||
"""
|
||||
|
||||
import std/strbasics
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''2
|
||||
2'''
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''2
|
||||
2'''
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''
|
||||
showing original type, length, and contents seq[int] 1 @[42]
|
||||
copy length and contents 1 @[42]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
discard """
|
||||
output: '''allocating 1048576 65536
|
||||
filling page from 1048576 len 65536'''
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
"""
|
||||
|
||||
# bug #12669
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''no crash'''
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||
output: '''hi
|
||||
ho
|
||||
ha
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''(v: 42)
|
||||
igotdestroyed'''
|
||||
"""
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
valgrind: true
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime -d:useMalloc $file'''
|
||||
cmd: '''nim c -d:nimAllocStats --gc:arc -d:useMalloc $file'''
|
||||
output: '''
|
||||
@[(input: @["KXSC", "BGMC"]), (input: @["PXFX"]), (input: @["WXRQ", "ZSCZD"])]
|
||||
14
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||
output: '''31665
|
||||
(allocCount: 33334, deallocCount: 33334)'''
|
||||
"""
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||
output: '''a b
|
||||
70
|
||||
hello
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
cmd: '''nim c --gc:arc $file'''
|
||||
output: '''@[1]
|
||||
@[116, 101, 115, 116]
|
||||
@[1953719668, 875770417]'''
|
||||
|
||||
Reference in New Issue
Block a user