mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
23 lines
221 B
Perl
23 lines
221 B
Perl
a = {}
|
|
|
|
local c = terralib.includec("stdio.h")
|
|
|
|
|
|
a.c = quote
|
|
c.printf("hello\n")
|
|
end
|
|
|
|
a.b = quote
|
|
var d = 4
|
|
a.c
|
|
return d
|
|
end
|
|
|
|
|
|
terra foo()
|
|
a.c
|
|
a.b
|
|
end
|
|
|
|
local test = require("test")
|
|
test.eq(foo(),4) |