diff options
Diffstat (limited to 'tests/destructor/tglobaldestructor.nim')
-rw-r--r-- | tests/destructor/tglobaldestructor.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/destructor/tglobaldestructor.nim b/tests/destructor/tglobaldestructor.nim new file mode 100644 index 000000000..4d002a092 --- /dev/null +++ b/tests/destructor/tglobaldestructor.nim @@ -0,0 +1,9 @@ +discard """ + cmd: '''nim c --gc:arc $file''' + output: '''(v: 42) +igotdestroyed''' +""" + +import objFile + +echo test |