genTryCpp codegen. Fixes #7232. Fixes #7239 (#7240)

This commit is contained in:
cooldome
2018-02-22 08:58:56 +00:00
committed by Andreas Rumpf
parent 0cf207a452
commit 45d3e2e510
2 changed files with 28 additions and 44 deletions

View File

@@ -3,7 +3,9 @@ discard """
output: '''foo
bar
Need odd and >= 3 digits##
baz'''
baz
caught
'''
"""
# bug #1888
@@ -15,3 +17,21 @@ try:
except ValueError:
echo getCurrentExceptionMsg(), "##"
echo "baz"
# bug 7232
try:
discard
except KeyError, ValueError:
echo "except handler" # should not be invoked
#bug 7239
try:
try:
raise newException(ValueError, "asdf")
except KeyError, ValueError:
raise
except:
echo "caught"