tests: add panic_with_cg.vv/.out
parent
57903247e3
commit
cdf70c070b
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
fn buggy_function() {
|
||||
panic('panicing...')
|
||||
}
|
||||
|
||||
fn main(){
|
||||
buggy_function()
|
||||
}
|
Loading…
Reference in New Issue