make more tests green for C++; refs #7870
This commit is contained in:
parent
b3d80dac9c
commit
7ae6b7e9a2
4 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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) =
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue