aboutsummaryrefslogtreecommitdiff
path: root/tests/i/multifile-try-catch/middle.cps
blob: 11b8a85dfa0b33831e9aa779ca3e5b21f88787e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

INCLUDE "leaf.cps"
PROCEDURE Outer()
    DECLARE GuardOne : Guard
    GuardOne.Id <- 1
    CALL Raise()
ENDPROCEDURE
PROCEDURE CatchHere()
    TRY
        CALL Raise()
    CATCH
        OUTPUT "library caught:", Destroyed
    ENDTRY
ENDPROCEDURE