diff options
-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 |