summary refs log tree commit diff stats
path: root/tests/vm
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-04-07 06:17:30 -0700
committerGitHub <noreply@github.com>2020-04-07 15:17:30 +0200
commitab5e26c53cf34a1839dd92d247b5e0a5cde432a0 (patch)
treec2a5f46c4ecdcd469bd9c17ef6c5cbb052aaaaaf /tests/vm
parentb41931bf67136f50cf8fb11442a7e614da00a0b9 (diff)
downloadNim-ab5e26c53cf34a1839dd92d247b5e0a5cde432a0.tar.gz
fix some codegen bugs: NIM_BOOL, NIM_STATIC_ASSERT, --passc:-std=... (etc) (#13798)
* fix cgen bool D20200328T203812
* --passc:std=c++17 (etc) now works instead of silently ignored
* document caveats for NIM_NIL
Diffstat (limited to 'tests/vm')
-rw-r--r--tests/vm/tevalffi.nim28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/vm/tevalffi.nim b/tests/vm/tevalffi.nim
deleted file mode 100644
index 02374869e..000000000
--- a/tests/vm/tevalffi.nim
+++ /dev/null
@@ -1,28 +0,0 @@
-discard """
-  joinable: false
-"""
-
-import std/[strformat,os,osproc]
-
-proc main() =
-  const nim = getCurrentCompilerExe()
-  const file = currentSourcePath().parentDir / "mevalffi.nim"
-  # strangely, --hint:cc:off was needed
-  let cmd = fmt"{nim} c -f --experimental:compiletimeFFI --hints:off --hint:cc:off {file}"
-  let (output, exitCode) = execCmdEx(cmd)
-  let expected = """
-hello world stderr
-hi stderr
-foo
-foo:100
-foo:101
-foo:102:103
-foo:102:103:104
-foo:0.03:asdf:103:105
-ret={s1:foobar s2:foobar age:25 pi:3.14}
-"""
-  doAssert output == expected, output
-  doAssert exitCode == 0
-
-when defined(nimHasLibFFIEnabled):
-  main()