mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 01:30:22 +00:00
13 lines
212 B
Perl
13 lines
212 B
Perl
|
|
|
|
C = terralib.includecstring [[
|
|
_Bool And(_Bool a, _Bool b) { return a && b; }
|
|
]]
|
|
|
|
|
|
terra foobar(a : bool, b : bool)
|
|
return C.And(a,b)
|
|
end
|
|
|
|
assert(foobar(false,true) == false)
|
|
assert(foobar(true,true) == true) |