~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/exceptions/jmp.yo

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2011-09-12 16:08:05 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: package-import@ubuntu.com-20110912160805-r9dq68beojgzuien
Tags: 9.0.2-1
New upstream release (editorial changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
The program's return value is zero em(only) if tt(Outer::fun) terminates
12
12
normally. The program, however, is designed in such a way that this won't
13
13
happen: tt(Inner::fun) calls tt(longjmp). As a result the execution flow
14
 
returns to the tt(setjmp) function. Now it will em(not) return a zero return
15
 
value. Consequently, after calling tt(Inner::fun) from tt(Outer::fun)
 
14
returns to the tt(setjmp) function. In this case it does em(not) return a zero
 
15
return value. Consequently, after calling tt(Inner::fun) from tt(Outer::fun)
16
16
tt(main)'s tt(if)-statement is entered and the program terminates with return
17
17
value 1.  Try to follow these steps when studying the following program
18
18
source, which is a direct modification of the basic program given in section