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