mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
9 lines
155 B
Perl
9 lines
155 B
Perl
C = terralib.includecstring [[
|
|
int foo = 4;
|
|
const int foo2 = 5;
|
|
]]
|
|
terra t()
|
|
C.foo = C.foo + 1;
|
|
return C.foo + C.foo2
|
|
end
|
|
assert(t() == 10) |