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

19 lines
282 B
Perl

local r,e = pcall(function()
local struct A {
a : opaque
}
local v = terralib.new(A)
end)
assert(not r and e:match("Errors reported during"))
local r,e = pcall(function()
local v = terralib.new(opaque)
end)
assert(not r and e:match("attempting to use an opaque type"))