Switch statements (annotation variations)

All compilers accumulate data at the switch keyword, but they vary on whether they accumulate data for all passes through a switch statement at the end of the switch statement. The way they accumulate data varies as well.

Some compilers accumulate data at the last executable statement of a switch statement:

image\var_swi.gif

Some compilers accumulate data at the trailing } of the switch statement:

image\var_swi2.gif

Some compilers do not accumulate data at the end of the switch statement:

image\var_swi3.gif