preparations for 0.8.12

This commit is contained in:
Araq
2011-07-10 15:48:13 +02:00
parent 2565ff8dde
commit 5b96eaa953
81 changed files with 2355 additions and 826 deletions

0
tests/accept/compile/tcan_alias_generic.nim Normal file → Executable file
View File

View File

0
tests/accept/compile/tcan_inherit_generic.nim Normal file → Executable file
View File

0
tests/accept/compile/tcan_specialise_generic.nim Normal file → Executable file
View File

0
tests/accept/compile/tcodegenbug1.nim Normal file → Executable file
View File

0
tests/accept/compile/tconstraints.nim Normal file → Executable file
View File

0
tests/accept/compile/teval1.nim Normal file → Executable file
View File

0
tests/accept/compile/tgenericmatcher.nim Normal file → Executable file
View File

0
tests/accept/compile/tgenericmatcher2.nim Normal file → Executable file
View File

0
tests/accept/compile/tgenericrefs.nim Normal file → Executable file
View File

0
tests/accept/compile/titer2.nim Normal file → Executable file
View File

0
tests/accept/compile/titer_no_tuple_unpack.nim Normal file → Executable file
View File

0
tests/accept/compile/tmacrostmt.nim Normal file → Executable file
View File

0
tests/accept/compile/tmarshal.nim Normal file → Executable file
View File

0
tests/accept/compile/tnimrodnode_for_runtime.nim Normal file → Executable file
View File

0
tests/accept/compile/tshadow_magic_type.nim Normal file → Executable file
View File

0
tests/accept/compile/tspecialised_is_equivalent.nim Normal file → Executable file
View File

0
tests/accept/compile/ttableconstr.nim Normal file → Executable file
View File

0
tests/accept/compile/ttempl4.nim Normal file → Executable file
View File

0
tests/accept/compile/ttemplreturntype.nim Normal file → Executable file
View File

View File

@@ -1,54 +0,0 @@
discard """
outputsub: "101"
cmd: "nimrod cc --hints:on --threads:on $# $#"
"""
import os
const
noDeadlocks = defined(system.deadlocksPrevented)
var
thr: array [0..5, TThread[tuple[a, b: int]]]
proc doNothing() = nil
type
PNode = ref TNode
TNode = object {.pure.}
le, ri: PNode
data: string
var
root: PNode
proc buildTree(depth: int): PNode =
if depth == 3: return nil
new(result)
result.le = buildTree(depth-1)
result.ri = buildTree(depth-1)
result.data = $depth
proc echoLeTree(n: PNode) =
var it: PNode
it = nil
it = n
while it != nil:
echo it.data
it = it.le
proc threadFunc(interval: tuple[a, b: int]) {.procvar.} =
doNothing()
for i in interval.a..interval.b:
var r = buildTree(i)
echoLeTree(r) # for local data
echoLeTree(root) # and the same for foreign data :-)
proc main =
root = buildTree(5)
for i in 0..high(thr):
createThread(thr[i], threadFunc, (i*3, i*3+2))
joinThreads(thr)
main()

0
tests/accept/compile/ttypeconverter1.nim Normal file → Executable file
View File

0
tests/accept/run/tcase_setconstr.nim Normal file → Executable file
View File

0
tests/accept/run/tfielditerator.nim Normal file → Executable file
View File

0
tests/accept/run/tgenericassign.nim Normal file → Executable file
View File

0
tests/accept/run/tgenericassigntuples.nim Normal file → Executable file
View File

0
tests/accept/run/tkoeniglookup.nim Normal file → Executable file
View File

0
tests/accept/run/tlists.nim Normal file → Executable file
View File

0
tests/accept/run/tmacro4.nim Normal file → Executable file
View File

0
tests/accept/run/tmethods1.nim Normal file → Executable file
View File

0
tests/accept/run/tnewderef.nim Normal file → Executable file
View File

0
tests/accept/run/trepr.nim Normal file → Executable file
View File

0
tests/accept/run/tsets2.nim Normal file → Executable file
View File

0
tests/accept/run/tsimplesort.nim Normal file → Executable file
View File

0
tests/accept/run/tslices.nim Normal file → Executable file
View File

3
tests/accept/run/ttables.nim Normal file → Executable file
View File

@@ -80,5 +80,8 @@ block countTableTest1:
else: break
inc i
block SyntaxTest:
var x = toTable[int, string]({:})
echo "true"