summary refs log tree commit diff stats
path: root/tests/vm/tnilclosurecall.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/tnilclosurecall.nim')
-rw-r--r--tests/vm/tnilclosurecall.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/vm/tnilclosurecall.nim b/tests/vm/tnilclosurecall.nim
new file mode 100644
index 000000000..449865b9c
--- /dev/null
+++ b/tests/vm/tnilclosurecall.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "attempt to call nil closure"
+  line: 8
+"""
+
+static:
+  let x: proc () = nil
+  x()
7deef78'>05c45ad ^
d0db566 ^


d32b136 ^
d0db566 ^

d0db566 ^


135781d ^


70e7570 ^
d0db566 ^


d0db566 ^
26d9914 ^
d0db566 ^
ee30096 ^
d0db566 ^







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