tests: add panic_with_cg.vv/.out

pull/4696/head
Delyan Angelov 2020-05-04 14:32:25 +03:00
parent 57903247e3
commit cdf70c070b
3 changed files with 15 additions and 0 deletions

View File

@ -257,6 +257,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
no_body: no_body
pos: start_pos.extend(end_pos)
body_pos: body_start_pos
file: p.file_name
is_builtin: p.builtin_mod || p.mod in util.builtin_module_parts
ctdefine: ctdefine
}

View File

@ -0,0 +1,6 @@
================ V panic ================
module: buggy_function
function: buggy_function()
message: panicing...
file: vlib/v/tests/inout/panic_with_cg.v
line: 3

View File

@ -0,0 +1,8 @@
fn buggy_function() {
panic('panicing...')
}
fn main(){
buggy_function()
}