v/vlib/v/tests/backtrace_test.v

12 lines
127 B
V
Raw Normal View History

2019-11-13 09:05:06 +01:00
/*
Test for backtrace capability
*/
fn a_method() {
2020-04-12 01:41:26 +02:00
print_backtrace()
2019-11-13 09:05:06 +01:00
}
fn test_backtrace() {
a_method()
2020-04-12 01:41:26 +02:00
// panic('hi')
2019-11-13 09:05:06 +01:00
}