mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
19 lines
282 B
Perl
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")) |