Debian Codegraph @

gcc/testsuite/gm2/isolib/run/pass/exceptiontest.mod

raw
1 MODULE exceptiontest;
2
3 IMPORT EXCEPTIONS;
4
5 VAR
6 s: EXCEPTIONS.ExceptionSource;
7 BEGIN
8 EXCEPTIONS.AllocateSource(s) ;
9 EXCEPTIONS.RAISE(s, 1, 'Exception text')
10 EXCEPT
11 HALT(0)
12 END exceptiontest.