summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
s='alt'>
63e9a88c1 ^
db4f617af ^


bc9749310 ^
db4f617af ^
1f63d1c76 ^
db4f617af ^



1f63d1c76 ^
db4f617af ^
8c671d22d ^
1f63d1c76 ^
99bcc233c ^
4d4b3b1c0 ^
db4f617af ^




8c671d22d ^

49d810f34 ^

db4f617af ^




1f63d1c76 ^
053309e60 ^
1f63d1c76 ^
a58a2f382 ^
db4f617af ^








ff4a69b62 ^

db4f617af ^
300430fbb ^
e27e873b7 ^
31bb4311e ^
e27e873b7 ^

8c671d22d ^
e27e873b7 ^
49d810f34 ^









1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79