mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
24 lines
266 B
C
24 lines
266 B
C
module test;
|
|
import std::io;
|
|
import std::collections::map;
|
|
import std::os;
|
|
import libc;
|
|
|
|
fn void bye() @finalizer
|
|
{
|
|
libc::puts("Bye from finalizer!");
|
|
}
|
|
|
|
fn void test1()
|
|
{
|
|
builtin::print_backtrace("hello", 1);
|
|
|
|
|
|
int x = 1;
|
|
return;
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
test1();
|
|
} |