diff options
author | Araq <rumpf_a@web.de> | 2018-10-30 16:06:44 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-30 16:52:33 +0100 |
commit | 7ae6b7e9a29824ca674d4b140573cf56d0a41ebe (patch) | |
tree | 524e2baf5738598a7df40c8e305875c436c673ad /tests/ccgbugs | |
parent | b3d80dac9c3609cb2320af419a5abc849b308fbc (diff) | |
download | Nim-7ae6b7e9a29824ca674d4b140573cf56d0a41ebe.tar.gz |
make more tests green for C++; refs #7870
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r-- | tests/ccgbugs/tcvarargs.nim | 1 | ||||
-rw-r--r-- | tests/ccgbugs/tinefficient_const_table.nim | 2 | ||||
-rw-r--r-- | tests/ccgbugs/tmissingbracket.nim | 2 | ||||
-rw-r--r-- | tests/ccgbugs/tmissingvolatile.nim | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/tests/ccgbugs/tcvarargs.nim b/tests/ccgbugs/tcvarargs.nim index ebaf83a4a..261885f4f 100644 --- a/tests/ccgbugs/tcvarargs.nim +++ b/tests/ccgbugs/tcvarargs.nim @@ -12,6 +12,7 @@ discard """ {.emit: """ #include <stdarg.h> +#include <stdio.h> void foo(int n, ...) { NI64 k; diff --git a/tests/ccgbugs/tinefficient_const_table.nim b/tests/ccgbugs/tinefficient_const_table.nim index 149b8bcff..7422d0676 100644 --- a/tests/ccgbugs/tinefficient_const_table.nim +++ b/tests/ccgbugs/tinefficient_const_table.nim @@ -6,9 +6,9 @@ of words''' cmd: r"nim c --hints:on $options -d:release $file" ccodecheck: "! @'genericSeqAssign'" + target: "c" """ - # bug #4354 import tables import sets diff --git a/tests/ccgbugs/tmissingbracket.nim b/tests/ccgbugs/tmissingbracket.nim index 886884d0c..d54983860 100644 --- a/tests/ccgbugs/tmissingbracket.nim +++ b/tests/ccgbugs/tmissingbracket.nim @@ -38,7 +38,7 @@ type t:int SubObject* = object of TestObj -method test*(t:var TestObj) = +method test*(t:var TestObj) {.base.} = echo "test called" method test*(t:var SubObject) = diff --git a/tests/ccgbugs/tmissingvolatile.nim b/tests/ccgbugs/tmissingvolatile.nim index 4d25e5c22..60b1771dc 100644 --- a/tests/ccgbugs/tmissingvolatile.nim +++ b/tests/ccgbugs/tmissingvolatile.nim @@ -2,6 +2,7 @@ discard """ output: "1" cmd: r"nim c --hints:on $options -d:release $file" ccodecheck: "'NI volatile state;'" + target: "C" """ # bug #1539 |