mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
22 lines
295 B
C
22 lines
295 B
C
module test;
|
|
import std::io;
|
|
import std::collections::map;
|
|
import std::os;
|
|
|
|
fn void! test2()
|
|
{
|
|
BacktraceList list = linux::backtrace_load(mem::heap())!;
|
|
foreach (Backtrace trace : list)
|
|
{
|
|
io::printfn("%s", trace);
|
|
}
|
|
}
|
|
|
|
fn void test1()
|
|
{
|
|
(void)test2();
|
|
}
|
|
fn void main()
|
|
{
|
|
test1();
|
|
} |