summary refs log tree commit diff stats
path: root/tests/objects/tobjcov.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-01-16 21:11:21 +0100
committerAraq <rumpf_a@web.de>2019-01-16 21:19:51 +0100
commit8947779dd033966202be58f105dd307c44f143c8 (patch)
tree1262d9a6b98f95fe035fb2f53ffe430614c6ef7b /tests/objects/tobjcov.nim
parent5df411bd6e51e801dd06fb6b8b6f1804f8dcf9b1 (diff)
downloadNim-8947779dd033966202be58f105dd307c44f143c8.tar.gz
disable one more test for C++
Diffstat (limited to 'tests/objects/tobjcov.nim')
-rw-r--r--tests/objects/tobjcov.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/objects/tobjcov.nim b/tests/objects/tobjcov.nim
index 817c1fcda..6c587e04d 100644
--- a/tests/objects/tobjcov.nim
+++ b/tests/objects/tobjcov.nim
@@ -1,8 +1,12 @@
 discard """
 action: compile
+target: "c"
 """
 
 # Covariance is not type safe:
+# Note: `nim cpp` makes it a compile error (after codegen), even with:
+# `var f = cast[proc (x: var TA) {.nimcall.}](cast[pointer](bp))`, which
+# currently removes all the `cast` in cgen'd code, hence the compile error.
 
 type
   TA = object of RootObj