v/vlib/compiler/tests/backtrace_test.v

12 lines
127 B
V

/*
Test for backtrace capability
*/
fn a_method() {
print_backtrace()
}
fn test_backtrace() {
a_method()
//panic('hi')
}