diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-13 15:21:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:28 +0100 |
commit | 031bfdec6f7798b99cc7bf9473a08048228c3d2a (patch) | |
tree | bd9b3ee9fbbaca154f37649f7f3cabe59cfdc349 /tests/ccgbugs | |
parent | 610283b9b0d48b1714bef2969b402b77410ce4dd (diff) | |
download | Nim-031bfdec6f7798b99cc7bf9473a08048228c3d2a.tar.gz |
make run the default action of a test in tester
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r-- | tests/ccgbugs/t6756.nim | 6 | ||||
-rw-r--r-- | tests/ccgbugs/tcodegendecllambda.nim | 1 | ||||
-rw-r--r-- | tests/ccgbugs/tgeneric_closure.nim | 8 | ||||
-rw-r--r-- | tests/ccgbugs/trecursive_closure.nim | 4 | ||||
-rw-r--r-- | tests/ccgbugs/tsighash_typename_regression.nim | 7 | ||||
-rw-r--r-- | tests/ccgbugs/tuple_canon.nim | 7 |
6 files changed, 31 insertions, 2 deletions
diff --git a/tests/ccgbugs/t6756.nim b/tests/ccgbugs/t6756.nim index 0f08557eb..5170a99f4 100644 --- a/tests/ccgbugs/t6756.nim +++ b/tests/ccgbugs/t6756.nim @@ -1,3 +1,9 @@ +discard """ +output: ''' +(v: 3) +''' +""" + import typetraits type A[T] = ref object diff --git a/tests/ccgbugs/tcodegendecllambda.nim b/tests/ccgbugs/tcodegendecllambda.nim index 6dce68db5..5c6608b77 100644 --- a/tests/ccgbugs/tcodegendecllambda.nim +++ b/tests/ccgbugs/tcodegendecllambda.nim @@ -1,6 +1,7 @@ discard """ targets: "c cpp js" ccodecheck: "'HELLO'" + action: compile """ when defined(JS): diff --git a/tests/ccgbugs/tgeneric_closure.nim b/tests/ccgbugs/tgeneric_closure.nim index f9d5e7910..bb3b924b9 100644 --- a/tests/ccgbugs/tgeneric_closure.nim +++ b/tests/ccgbugs/tgeneric_closure.nim @@ -1,4 +1,10 @@ - +discard """ +output: ''' +2 +2 +2 +''' +""" # bug 2659 diff --git a/tests/ccgbugs/trecursive_closure.nim b/tests/ccgbugs/trecursive_closure.nim index f64382a8c..4b6514b90 100644 --- a/tests/ccgbugs/trecursive_closure.nim +++ b/tests/ccgbugs/trecursive_closure.nim @@ -1,3 +1,7 @@ +discard """ +action: compile +""" + # bug #2233 type MalType = object fun: proc: MalType diff --git a/tests/ccgbugs/tsighash_typename_regression.nim b/tests/ccgbugs/tsighash_typename_regression.nim index 7122902d9..6e49bafc3 100644 --- a/tests/ccgbugs/tsighash_typename_regression.nim +++ b/tests/ccgbugs/tsighash_typename_regression.nim @@ -1,3 +1,10 @@ +discard """ +output: ''' +123 +baz +''' +""" + # bug #5147 proc foo[T](t: T) = diff --git a/tests/ccgbugs/tuple_canon.nim b/tests/ccgbugs/tuple_canon.nim index 7e9e91836..671986054 100644 --- a/tests/ccgbugs/tuple_canon.nim +++ b/tests/ccgbugs/tuple_canon.nim @@ -1,4 +1,9 @@ - +discard """ +output: ''' +vidx 18 +0,0 +''' +""" # bug #4626 var foo: (int, array[1, int]) # Tuple must be of length > 1 |