Files
linguist/samples/Terra/cbool.t
2016-01-28 11:22:27 +07:00

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)