* fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
This commit is contained in:
parent
e646c16e06
commit
63d1a0289e
11 changed files with 40 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
output: '''0
|
||||
(allocCount: 6, deallocCount: 6)'''
|
||||
(allocCount: 5, deallocCount: 5)'''
|
||||
"""
|
||||
|
||||
import system / ansi_c
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ a: @[4, 2, 3]
|
|||
0
|
||||
30
|
||||
true
|
||||
(allocCount: 36, deallocCount: 36)'''
|
||||
(allocCount: 27, deallocCount: 27)'''
|
||||
"""
|
||||
|
||||
include system / ansi_c
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ axc
|
|||
...
|
||||
destroying GenericObj[T] GenericObj[system.int]
|
||||
test
|
||||
(allocCount: 17, deallocCount: 15)
|
||||
(allocCount: 13, deallocCount: 11)
|
||||
3'''
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
output: '''31665
|
||||
(allocCount: 33335, deallocCount: 33335)'''
|
||||
(allocCount: 33334, deallocCount: 33334)'''
|
||||
"""
|
||||
|
||||
# bug #11053
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ discard """
|
|||
hello
|
||||
hello
|
||||
hello
|
||||
(allocCount: 4, deallocCount: 4)'''
|
||||
(allocCount: 3, deallocCount: 3)'''
|
||||
"""
|
||||
|
||||
import system / ansi_c
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ discard """
|
|||
valgrind: true
|
||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
output: '''OK 3
|
||||
(allocCount: 8, deallocCount: 5)'''
|
||||
(allocCount: 7, deallocCount: 4)'''
|
||||
"""
|
||||
|
||||
import strutils, math
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ discard """
|
|||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
||||
output: '''button
|
||||
clicked!
|
||||
(allocCount: 7, deallocCount: 7)'''
|
||||
(allocCount: 6, deallocCount: 6)'''
|
||||
"""
|
||||
|
||||
import system / ansi_c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue