From 7ae6b7e9a29824ca674d4b140573cf56d0a41ebe Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 30 Oct 2018 16:06:44 +0100 Subject: [PATCH] make more tests green for C++; refs #7870 --- tests/ccgbugs/tcvarargs.nim | 1 + tests/ccgbugs/tinefficient_const_table.nim | 2 +- tests/ccgbugs/tmissingbracket.nim | 2 +- 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 +#include 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