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

14 lines
280 B
Perl

test = terralib.includecstring([[
typedef struct {} emptyanon;
typedef struct foo foobar;
void test(struct foo * f);
struct foo { int x; };
union ufoo;
typedef union { int a; int b; } anonunion;
]])
terra main()
var s : test.foo
s.x = 1
end
main()