mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
21 lines
260 B
Perl
21 lines
260 B
Perl
|
|
C = terralib.includec("stdio.h")
|
|
terra main()
|
|
C.printf("what\n")
|
|
end
|
|
main:setinlined(false)
|
|
|
|
terra realmain()
|
|
main()
|
|
end
|
|
|
|
terra foo()
|
|
end
|
|
and terra foo(a : int)
|
|
end
|
|
|
|
foo:compile()
|
|
|
|
terralib.saveobj("renamed",{ main = realmain })
|
|
|
|
terralib.dumpmodule() |