mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-23 01:35:33 +00:00
samples: add Terra samples
source: https://github.com/zdevito/terra/tree/master/tests
This commit is contained in:
7
samples/Terra/fnptr.t
Normal file
7
samples/Terra/fnptr.t
Normal file
@@ -0,0 +1,7 @@
|
||||
terra baz() return 1 end
|
||||
bp = baz:getpointer()
|
||||
terra foo()
|
||||
return bp()
|
||||
end
|
||||
|
||||
assert(foo() == 1)
|
||||
Reference in New Issue
Block a user