mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: add panic_with_cg.vv/.out
This commit is contained in:
parent
57903247e3
commit
cdf70c070b
@ -257,6 +257,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
|
|||||||
no_body: no_body
|
no_body: no_body
|
||||||
pos: start_pos.extend(end_pos)
|
pos: start_pos.extend(end_pos)
|
||||||
body_pos: body_start_pos
|
body_pos: body_start_pos
|
||||||
|
file: p.file_name
|
||||||
is_builtin: p.builtin_mod || p.mod in util.builtin_module_parts
|
is_builtin: p.builtin_mod || p.mod in util.builtin_module_parts
|
||||||
ctdefine: ctdefine
|
ctdefine: ctdefine
|
||||||
}
|
}
|
||||||
|
6
vlib/v/tests/inout/panic_with_cg.out
Normal file
6
vlib/v/tests/inout/panic_with_cg.out
Normal 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
|
8
vlib/v/tests/inout/panic_with_cg.vv
Normal file
8
vlib/v/tests/inout/panic_with_cg.vv
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
fn buggy_function() {
|
||||||
|
panic('panicing...')
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main(){
|
||||||
|
buggy_function()
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user