make more tests green for C++; refs #7870

This commit is contained in:
Araq 2018-10-30 16:06:44 +01:00
commit 7ae6b7e9a2
4 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,7 @@ discard """
{.emit: """ {.emit: """
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h>
void foo(int n, ...) { void foo(int n, ...) {
NI64 k; NI64 k;

View file

@ -6,9 +6,9 @@ of
words''' words'''
cmd: r"nim c --hints:on $options -d:release $file" cmd: r"nim c --hints:on $options -d:release $file"
ccodecheck: "! @'genericSeqAssign'" ccodecheck: "! @'genericSeqAssign'"
target: "c"
""" """
# bug #4354 # bug #4354
import tables import tables
import sets import sets

View file

@ -38,7 +38,7 @@ type
t:int t:int
SubObject* = object of TestObj SubObject* = object of TestObj
method test*(t:var TestObj) = method test*(t:var TestObj) {.base.} =
echo "test called" echo "test called"
method test*(t:var SubObject) = method test*(t:var SubObject) =

View file

@ -2,6 +2,7 @@ discard """
output: "1" output: "1"
cmd: r"nim c --hints:on $options -d:release $file" cmd: r"nim c --hints:on $options -d:release $file"
ccodecheck: "'NI volatile state;'" ccodecheck: "'NI volatile state;'"
target: "C"
""" """
# bug #1539 # bug #1539