mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-15 13:56:15 +00:00
samples: add Terra samples
source: https://github.com/zdevito/terra/tree/master/tests
This commit is contained in:
10
samples/Terra/lvaluepointer.t
Normal file
10
samples/Terra/lvaluepointer.t
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
terra foo()
|
||||
var a : int = 5
|
||||
var pa = &a
|
||||
@pa = 4
|
||||
@[&float](pa) = 5
|
||||
end
|
||||
|
||||
foo()
|
||||
Reference in New Issue
Block a user