Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Stack-traces/Oz/stack-traces-1.oz
Normal file
10
Task/Stack-traces/Oz/stack-traces-1.oz
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
declare
|
||||
proc {Test}
|
||||
_ = 1 div 0
|
||||
end
|
||||
in
|
||||
try
|
||||
{Test}
|
||||
catch E then
|
||||
{Inspect E}
|
||||
end
|
||||
15
Task/Stack-traces/Oz/stack-traces-2.oz
Normal file
15
Task/Stack-traces/Oz/stack-traces-2.oz
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%% make sure that simple function calls are not optimized away
|
||||
\switch +controlflowinfo
|
||||
|
||||
declare
|
||||
[Debug] = {Link ['x-oz://boot/Debug']}
|
||||
|
||||
proc {F} {G} end
|
||||
|
||||
proc {G} {H} end
|
||||
|
||||
proc {H}
|
||||
{Inspect {Debug.getTaskStack {Thread.this} 100 true}}
|
||||
end
|
||||
in
|
||||
{F}
|
||||
Loading…
Add table
Add a link
Reference in a new issue